@@ -6,7 +6,7 @@ if !isfile(joinpath(@__DIR__, "Manifest.toml"))
66 Pkg. instantiate ()
77end
88
9- using PkgBenchmark
9+ using BenchmarkCI
1010
1111import LibGit2
1212repo = mktempdir (mktempdir ()) # TestItemRunner needs access to parent directory as well.
@@ -15,23 +15,9 @@ LibGit2.clone("https://github.com/epolack/DFTK-testproblems", repo)
1515# Workaround to be able to benchmark releases before the use of PkgBenchmark.
1616script = tempname (repo) * " .jl"
1717benchpath = joinpath (ROOTPATH, " benchmark" , " humongous" , " benchmarks.jl" )
18+ project = dirname (benchpath)
1819cp (benchpath, script)
1920
20- # Reconfigures the packages in case of version changes.
21- juliacmd= ` $(joinpath (Sys. BINDIR, Base. julia_exename ())) \
22- -O3 -e"import Pkg; Pkg.activate(\" $ROOTPATH \" ); Pkg.instantiate();"`
23- target = BenchmarkConfig (; id= " HEAD" , juliacmd)
24- baseline = BenchmarkConfig (; id= " master" , juliacmd)
25- judged = judge (ROOTPATH, target, baseline; retune= true , script)
21+ BenchmarkCI. judge (; retune= true , script, project)
2622
27- println (" MASTER BRANCH" )
28- println (judged. baseline_results)
29-
30- println (" THIS BRANCH" )
31- println (judged. target_results)
32-
33- println (" DIFFGROUP" )
34- println (judged. benchmarkgroup)
35-
36- println (" MARKDOWN" )
37- export_markdown (stdout , judged; export_invariants= false )
23+ BenchmarkCI. displayjudgement ()
0 commit comments