Mercurial > repos > public > sbplib_julia
comparison benchmark/run_and_view.jl @ 1176:27ee001df3e5 tooling/benchmarks
Make run_benchmark include hg info
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 25 Jan 2023 13:55:37 +0100 |
parents | a0ab801b62c2 |
children | 68445e87fa93 |
comparison
equal
deleted
inserted
replaced
1175:a0ab801b62c2 | 1176:27ee001df3e5 |
---|---|
14 file_path = write_result_html(r) | 14 file_path = write_result_html(r) |
15 open_in_default_browser(file_path) | 15 open_in_default_browser(file_path) |
16 end | 16 end |
17 | 17 |
18 function run_benchmark() | 18 function run_benchmark() |
19 return PkgBenchmark.benchmarkpkg(Sbplib) | 19 r = PkgBenchmark.benchmarkpkg(Sbplib) |
20 | |
21 commit = hg_id() | |
22 | |
23 return PkgBenchmark.BenchmarkResults( | |
24 "Sbplib.jl", | |
25 commit, | |
26 r.benchmarkgroup, | |
27 r.date, | |
28 r.julia_commit, | |
29 r.vinfo, | |
30 r.benchmarkconfig, | |
31 ) | |
20 end | 32 end |
21 | 33 |
22 function write_result_html(io, r; title) | 34 function write_result_html(io, r; title) |
23 iobuffer = IOBuffer() | 35 iobuffer = IOBuffer() |
24 PkgBenchmark.export_markdown(iobuffer, r) | 36 PkgBenchmark.export_markdown(iobuffer, r) |