Skip to content

Commit 9e82ba3

Browse files
committed
Add compat entries, define problems outside loop
1 parent b2dc0cf commit 9e82ba3

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

benchmark/Project.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,11 @@ JSOBenchmarks = "9410e2bb-e8e7-4fa0-9768-685b196f59b5"
44
PkgBenchmark = "32113eaa-f34f-5b0d-bd6c-c81e245fc73d"
55
RegularizedOptimization = "20620ad1-4fe4-4467-ae46-fb087718fe7b"
66
RegularizedProblems = "ea076b23-609f-44d2-bb12-a4ae45328278"
7+
8+
[compat]
9+
julia = "1"
10+
BenchmarkTools = "1"
11+
PkgBenchmark = "0.2"
12+
# JSOBenchmarks = "0.1"
13+
RegularizedOptimization = "0.2"
14+
RegularizedProblems = "0.1"

benchmark/benchmarks.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ using RegularizedProblems, RegularizedOptimization
33

44
const SUITE = BenchmarkGroup()
55

6+
bpdn_l0, _ = setup_bpdn_l0()
7+
bpdn_l1, _ = setup_bpdn_l1()
8+
bpdn_B0, _ = setup_bpdn_B0()
9+
610
for solver (R2,)
711
solver_name = string(solver)
812
SUITE[solver_name] = BenchmarkGroup()
9-
bpdn_l0, _ = setup_bpdn_l0()
1013
SUITE[solver_name]["bpdn_l0"] = @benchmarkable $solver($bpdn_l0)
11-
bpdn_l1, _ = setup_bpdn_l1()
1214
SUITE[solver_name]["bpdn_l1"] = @benchmarkable $solver($bpdn_l1)
13-
bpdn_B0, _ = setup_bpdn_B0()
1415
SUITE[solver_name]["bpdn_B0"] = @benchmarkable $solver($bpdn_B0)
1516
end

0 commit comments

Comments
 (0)