Skip to content

Commit

Permalink
Don't include compile time in benchk
Browse files Browse the repository at this point in the history
  • Loading branch information
xukai92 committed Feb 18, 2018
1 parent c4ad9a1 commit 78b6ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/benchmarkhelper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ end

# Run benchmark
tbenchmark(alg::String, model::String, data::String) = begin
chain, time, mem, _, _ = eval(parse("@timed sample($model($data), $alg)"))
chain, time, mem, _, _ = eval(parse("model_f = $model($data); @timed sample(model_f, $alg)"))
alg, sum(chain[:elapsed]), mem, chain, deepcopy(chain)
end

Expand Down

0 comments on commit 78b6ed6

Please sign in to comment.