Mercurial > repos > public > sbplib_julia
changeset 1315:0551fd71682f tooling/benchmarks
Workaround for the display of revision in html
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 27 Apr 2023 16:05:15 +0200 |
parents | 6ae9b98b15b9 |
children | 8e5d4ddf7afd |
files | benchmark/benchmark_utils.jl |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/benchmark/benchmark_utils.jl Thu Apr 27 16:02:39 2023 +0200 +++ b/benchmark/benchmark_utils.jl Thu Apr 27 16:05:15 2023 +0200 @@ -30,7 +30,7 @@ function run_benchmark(;kwargs...) r = PkgBenchmark.benchmarkpkg(Sbplib; kwargs...) - rev = hg_id() + rev = hg_rev() # Should be changed to hg_id() when the html can handle it. return add_rev_info(r, rev) end @@ -76,9 +76,15 @@ function add_rev_info(benchmarkresult, rev) + if endswith(rev,"+") + revstr = "+$rev" # Workaround for the bad presentation of BenchmarkResults. + else + revstr = rev + end + return PkgBenchmark.BenchmarkResults( benchmarkresult.name, - rev, + revstr, benchmarkresult.benchmarkgroup, benchmarkresult.date, benchmarkresult.julia_commit,