Skip to content

Commit

Permalink
Merge branch 'tkf/pkgbenchmark' into tkf/benchmarkci
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Feb 19, 2020
2 parents e4062db + bd834ff commit 84ca6a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion benchmark/benchmarks.jl
@@ -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

0 comments on commit 84ca6a4

Please sign in to comment.