Skip to content

Commit 61b0c6d

Browse files
committed
perf: try reusing the project file
1 parent 88ac9eb commit 61b0c6d

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

.github/workflows/benchmark_pr.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ jobs:
3636
echo $PATH
3737
ls -l ~/.julia/bin
3838
mkdir results
39-
benchpkg ${{ steps.extract-package-name.outputs.package_name }} --rev="${{github.event.repository.default_branch}},${{github.event.pull_request.head.sha}}" --url=${{ github.event.repository.clone_url }} --bench-on="${{github.event.pull_request.head.sha}}" --output-dir=results/ -s="benchmark/benchmarks.jl" --tune --exeflags="-O3 --threads=auto"
40-
env:
41-
JULIA_PKG_SERVER: ""
39+
benchpkg ${{ steps.extract-package-name.outputs.package_name }} --rev="${{github.event.repository.default_branch}},${{github.event.pull_request.head.sha}}" --url=${{ github.event.repository.clone_url }} --bench-on="${{github.event.pull_request.head.sha}}" --output-dir=results/ --tune --exeflags="-O3 --threads=auto"
4240
- name: Create plots from benchmarks
4341
run: |
4442
mkdir -p plots

benchmark/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ Boltz = "4544d5e4-abc5-4dea-817f-29e4c205d9c8"
44
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
55
Lux = "b2108857-7c20-44ae-9111-449ecde12c47"
66
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
7-
Reactant = "3c362404-f566-11ee-1572-e11a4b42c853"
87

98
[compat]
109
BenchmarkTools = "1.5"
1110
Boltz = "1"
1211
Enzyme = "0.13"
1312
Lux = "1.1"
1413
Random = "1.10"
15-
Reactant = "0.2"
1614
julia = "1.10"

benchmark/benchmarks.jl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
if !isfile(joinpath(@__DIR__, "Project.toml"))
2-
# Assume the Project.toml wasn't activated yet
3-
@info "Installing Benchmark dependencies"
4-
import Pkg
5-
Pkg.activate(@__DIR__)
6-
Pkg.develop(Pkg.PackageSpec(path=joinpath(@__DIR__, "..")))
7-
extra_pkgs = [
8-
Pkg.PackageSpec(name="BenchmarkTools", version="1.5"),
9-
Pkg.PackageSpec(name="Boltz", version="1"),
10-
Pkg.PackageSpec(name="Lux", version="1.1"),
11-
Pkg.PackageSpec(name="Random", version="1.10"),
12-
Pkg.PackageSpec(name="Enzyme", version="0.13"),
13-
]
14-
Pkg.add(extra_pkgs)
15-
end
16-
171
using BenchmarkTools
182
using Reactant
193
using Enzyme

0 commit comments

Comments
 (0)