Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tkf/pkgbenchmark' into tkf/benchmarkci
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
# Each file of the form "bench_$(name).jl" in this directory is `include`d and | ||
# its last statement is assumed to be a `BenchmarkGroup`. This group is added | ||
# to the top-level group `SUITE` with the `$name` extracted from the file name. | ||
|
||
using BenchmarkTools | ||
SUITE = BenchmarkGroup() | ||
for file in sort(readdir(@__DIR__)) | ||
if startswith(file, "bench_") && endswith(file, ".jl") | ||
SUITE[file[length("bench_") + 1:end - length(".jl")]] = | ||
SUITE[chop(file, head = length("bench_"), tail = length(".jl"))] = | ||
include(file) | ||
end | ||
end |