Skip to content

Commit 3774af1

Browse files
committed
make the pre check sample not fail the samples run
1 parent 03ff41e commit 3774af1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

samples/pre_check.exs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ Benchee.run(%{"a*2" => fn -> a * 2 end, "a+a" => fn -> a + a end},
1212
pre_check: :all_same
1313
)
1414

15-
Benchee.run(%{"a*2" => fn -> a * 2 end, "a+a" => fn -> a + a + 1 end},
16-
time: 0,
17-
warmup: 0,
18-
pre_check: :all_same
19-
)
15+
# this one is expected to fail, commented out by default so that `run_samples.sh` doesn't quit here
16+
# Benchee.run(%{"a*2" => fn -> a * 2 end, "a+a (wrong)" => fn -> a + a + 1 end},
17+
# time: 0,
18+
# warmup: 0,
19+
# pre_check: :all_same
20+
# )

0 commit comments

Comments
 (0)