Mercurial > repos > public > sbplib_julia
comparison benchmark/make.jl @ 1320:6ae2ec4cef5a tooling/benchmarks
Rename functions for comparing benchmarks. Refactor their code. Allow comparing the current working directory
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 28 Apr 2023 08:53:39 +0200 |
parents | 7610a61eaac1 |
children |
comparison
equal
deleted
inserted
replaced
1319:cb4d57ce2ed1 | 1320:6ae2ec4cef5a |
---|---|
1 rev = nothing | |
2 baseline = nothing | |
3 target = nothing | |
4 | |
1 if "--rev" ∈ ARGS | 5 if "--rev" ∈ ARGS |
2 i = findlast(==("--rev"), ARGS) | 6 i = findlast(==("--rev"), ARGS) |
3 args = parse(Int,ARGS[i+1]) | 7 rev = ARGS[i+1] |
4 elseif ("--target","--baseline") ∈ ARGS | 8 end |
9 | |
10 if "--target" ∈ ARGS | |
5 i = findlast(==("--target"), ARGS) | 11 i = findlast(==("--target"), ARGS) |
6 j = findlast(==("--baseline"), ARGS) | 12 target = ARGS[i+1] |
7 args = (ARGS[i+1],ARGS[j+1]) | 13 end |
8 else | 14 |
9 args = () | 15 if "--baseline" ∈ ARGS |
16 i = findlast(==("--baseline"), ARGS) | |
17 baseline = ARGS[i+1] | |
10 end | 18 end |
11 | 19 |
12 include("benchmark_utils.jl") | 20 include("benchmark_utils.jl") |
13 main(args...) | 21 main(;rev, target, baseline) |