Skip to content

Commit 563907b

Browse files
committed
repo in local directory
1 parent aa38154 commit 563907b

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[deps]
22
AtomsIOPython = "9e4c859b-2281-48ef-8059-f50fe53c37b0"
3+
BenchmarkCI = "20533458-34a3-403d-a444-e18f38190b5b"
34
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
45
DFTK = "acf6eb54-70d9-11e9-0013-234b7a5f5337"
56
LibGit2 = "76f85450-5226-5b5a-8eaa-529ad045b433"
67
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
78
MKL = "33e6dc65-8f57-5167-99aa-e5a354878fb2"
8-
PkgBenchmark = "32113eaa-f34f-5b0d-bd6c-c81e245fc73d"
99
TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a"

benchmark/humongous/runbenchmarks.jl

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if !isfile(joinpath(@__DIR__, "Manifest.toml"))
66
Pkg.instantiate()
77
end
88

9-
using PkgBenchmark
9+
using BenchmarkCI
1010

1111
import LibGit2
1212
repo = 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.
1616
script = tempname(repo) * ".jl"
1717
benchpath = joinpath(ROOTPATH, "benchmark", "humongous", "benchmarks.jl")
18+
project = dirname(benchpath)
1819
cp(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

Comments
 (0)