Skip to content

Commit 2606b7c

Browse files
committed
run the benchmark faster
1 parent 5af6dbc commit 2606b7c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

benchmark/benchmarks.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ const list_problems_PureJuMP = setdiff(list_problems, list_problems_not_PureJuMP
1515

1616
# Run locally with `tune!(SUITE)` and then `run(SUITE)`
1717
const SUITE = BenchmarkGroup()
18+
19+
BenchmarkTools.DEFAULT_PARAMETERS[] = BenchmarkTools.Parameters(
20+
samples = 5, # default ~10k → 3
21+
evals = 1, # run each sample once
22+
# seconds = 0.2, # time budget per benchmark
23+
# gctrial = false, # skip extra GC runs
24+
)
25+
1826
SUITE["ADNLPProblems"] = BenchmarkGroup()
1927
SUITE["ADNLPProblems"]["NLP"] = BenchmarkGroup()
2028
SUITE["ADNLPProblems"]["NLP"]["constructor"] = BenchmarkGroup()

0 commit comments

Comments
 (0)