Skip to content

Commit 180e405

Browse files
move the random seeds to the scripts
1 parent 7585700 commit 180e405

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/jsobmarks.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ jobs:
4343
run: echo "REPONAME=${{ github.event.repository.name }}" | sed -e 's/\.jl$//' >> $GITHUB_OUTPUT
4444
- name: Run benchmarks
4545
run: julia --project=benchmark -e '
46-
using JSOBenchmarks, Random
47-
48-
Random.seed!(0)
46+
using JSOBenchmarks
4947

5048
gist_url = run_benchmarks(
5149
"${{ steps.sanitize.outputs.REPONAME }}",

benchmark/benchmarks.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
using BenchmarkTools
1+
using BenchmarkTools, Random
22
using RegularizedProblems, RegularizedOptimization
33

4+
Random.seed!(0)
5+
46
const SUITE = BenchmarkGroup()
57

68
bpdn_l0, _ = setup_bpdn_l0()

benchmark/solver_benchmarks.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
using Random
12
using RegularizedProblems, RegularizedOptimization, SolverBenchmark
23

4+
Random.seed!(0)
5+
36
bpdn_l0, _ = setup_bpdn_l0()
47
bpdn_l1, _ = setup_bpdn_l1()
58
bpdn_B0, _ = setup_bpdn_B0()

0 commit comments

Comments
 (0)