Skip to content

Latest commit

 

History

History

benchmark

Notes on regression testing with PkgBenchmark

To troubleshoot benchmark script locally:

julia --project=benchmark -e '
    using Pkg; Pkg.instantiate();
    include("benchmark/runbenchmarks.jl");'

To compare against baseline locally:

Note, must have a baseline branch, which will be the reference point against the currently active branch. A common use case is to point the baseline to the previous commit.

This can be accomplished with

git branch baseline HEAD~

If there are errors preventing branch creation (likely due to earlier local benchmarking), may force a repoint with

git branch -f baseline HEAD~

Then run this command:

julia --project=benchmark -e '
    using Pkg; Pkg.instantiate();
    include("benchmark/runjudge.jl");
    include("benchmark/pprintjudge.jl");'

To compare against baseline locally (without re-running baseline):

Running the above baseline comparison produces a benchmark/result-baseline.json file which is used as a reference for new changes. If the baseline remains unchanged during development, then it is unnecessary to regenerate this file, and the following command may be used to save benchmarking time.

julia --project=benchmark -e '
    using Pkg; Pkg.instantiate();
    include("benchmark/incrementalrunjudge.jl");
    include("benchmark/pprintjudge.jl");'