1- ROOTPATH = joinpath (@__DIR__ , " .." )
1+ ROOTPATH = joinpath (@__DIR__ , " ../.. " )
22import Pkg
33Pkg. activate (@__DIR__ )
44if ! isfile (joinpath (@__DIR__ , " Manifest.toml" ))
@@ -12,17 +12,17 @@ import LibGit2
1212repo = mktempdir (mktempdir ()) # TestItemRunner needs access to parent directory as well.
1313LibGit2. clone (" https://github.com/epolack/DFTK-testproblems" , repo)
1414
15- # script = tempname() * ".jl"
15+ # Workaround to be able to benchmark releases before the use of PkgBenchmark.
1616script = tempname (repo) * " .jl"
17- benchpath = joinpath (ROOTPATH, " benchmark" , " benchmarks.jl" )
17+ benchpath = joinpath (ROOTPATH, " benchmark" , " humongous " , " benchmarks.jl" )
1818cp (benchpath, script)
1919
2020# Reconfigures the packages in case of version changes.
2121juliacmd= ` $(joinpath (Sys. BINDIR, Base. julia_exename ())) \
2222 -O3 -e"import Pkg; Pkg.activate(\" $ROOTPATH \" ); Pkg.instantiate();"`
23- current = BenchmarkConfig (; id= " HEAD" , juliacmd)
23+ target = BenchmarkConfig (; id= " HEAD" , juliacmd)
2424baseline = BenchmarkConfig (; id= " master" , juliacmd)
25- judged = judge (ROOTPATH, current , baseline; retune= true , script)
25+ judged = judge (ROOTPATH, target , baseline; retune= true , script)
2626
2727println (" MASTER BRANCH" )
2828println (judged. baseline_results)
@@ -34,4 +34,4 @@ println("DIFFGROUP")
3434println (judged. benchmarkgroup)
3535
3636println (" MARKDOWN" )
37- export_markdown (stdout , judged, export_invariants= true )
37+ export_markdown (stdout , judged; export_invariants= false )
0 commit comments