Skip to content

Commit 4352cd9

Browse files
committed
Save benchee data between runs
1 parent af4fc55 commit 4352cd9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ erl_crash.dump
2525

2626
# Ignore benchmark specific dependencies etc (separate project to work around problems with dependencies)
2727
/bench/_build
28-
/bench/deps
28+
/bench/deps
29+
/bench/benchmark.benchee

bench/decode.exs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,21 @@ end
3737

3838
inputs = for name <- decode_inputs, into: %{}, do: {name, read_data.(name)}
3939

40+
IO.puts("Checking jobs don't crash")
41+
for {name, input} <- inputs, {job, decode_job} <- decode_jobs do
42+
IO.puts("Testing #{job} #{name}")
43+
decode_job.(input)
44+
end
45+
IO.puts("\n")
46+
4047
Benchee.run(decode_jobs,
4148
# parallel: 4,
4249
warmup: 5,
4350
time: 30,
4451
memory_time: 1,
4552
inputs: inputs,
53+
save: %{path: "output/runs/#{DateTime.utc_now()}.benchee"},
54+
load: "output/runs/*.benchee",
4655
formatters: [
4756
{Benchee.Formatters.HTML, file: Path.expand("output/decode.html", __DIR__)},
4857
Benchee.Formatters.Console,

0 commit comments

Comments
 (0)