Skip to content

Commit ee845cc

Browse files
committed
benchmarks: fix benchmark eval options
1 parent 3113499 commit ee845cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: benchmark/benchmarks.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function benchmark_evaluation()
4848
(turbo || bumper) && !(T in (Float32, Float64)) && continue
4949
if bumper
5050
try
51-
eval_tree_array(Node{T}(val=1.0), ones(T, 5, n), operators; turbo, bumper)
51+
eval_tree_array(Node{T}(val=1.0), ones(T, 5, n), operators; eval_options=EvalOptions(; turbo, bumper))
5252
catch e
5353
isa(e, MethodError) || rethrow(e)
5454
@warn "Skipping bumper tests"
@@ -74,11 +74,12 @@ function benchmark_evaluation()
7474
extra_kws...
7575
)
7676
suite[T]["evaluation$(extra_key)"] = @benchmarkable(
77-
[eval_tree_array(tree, X, $operators; turbo=$turbo, $extra_kws...) for tree in trees],
77+
[eval_tree_array(tree, X, $operators; eval_options) for tree in trees],
7878
setup=(
7979
X=randn(MersenneTwister(0), $T, 5, $n);
8080
treesize=20;
8181
ntrees=100;
82+
eval_options=EvalOptions(; turbo=$turbo, $(extra_kws)...);
8283
trees=[gen_random_tree_fixed_size(treesize, $operators, 5, $T) for _ in 1:ntrees]
8384
)
8485
)

0 commit comments

Comments
 (0)