You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/introduction-to-benchmarkprofiles/index.jmd
+35-2Lines changed: 35 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,24 @@ tags: ["benchmarking"]
4
4
author: "Abel Soares Siqueira and Dominique Orban"
5
5
---
6
6
7
-
This tutorial is essentially a collection of examples.
7
+
This tutorial demonstrates how to use BenchmarkProfiles.jl to visualize and compare solver performance across multiple test problems.
8
8
9
9
## Performance Profile
10
10
11
-
Performance profiles are straightforward to use. The input is a matrix `T` with entries `T[i,j]` indicating the cost to solve problem `i` using solver `j`. Cost can be, for instance, elapsed time, or number of evaluations. The cost should be positive. If any cost is zero, all measures will be shifted by 1.
11
+
Performance profiles, introduced by Dolan and Moré (2002), provide a graphical way to compare the performance of multiple solvers across a test set. They show the fraction of problems solved by each solver as a function of a performance tolerance.
12
+
13
+
### Understanding Performance Profiles
14
+
15
+
The input is a matrix `T` with entries `T[i,j]` indicating the cost to solve problem `i` using solver `j`. Cost can be, for instance, elapsed time, number of iterations, or function evaluations. The cost should be positive. If any cost is zero, all measures will be shifted by 1.
16
+
17
+
The performance profile plots:
18
+
- **x-axis (τ)**: Performance ratio - how much slower a solver is compared to the best solver for each problem. τ=1 means the solver was fastest, τ=2 means it took twice as long as the fastest solver.
19
+
- **y-axis (ρ(τ))**: Fraction of problems solved within the performance ratio τ. ρ(2) = 0.8 means the solver solved 80% of problems within twice the time of the best solver.
20
+
21
+
**Key interpretations**:
22
+
- The height at τ=1 (left side) shows the fraction of problems where the solver was fastest
23
+
- The right-side height (as τ→∞) shows the fraction of problems successfully solved (robustness)
24
+
- Higher curves are better - the solver solves more problems with smaller performance ratios
The `performance_profile` function accepts several optional keyword arguments:
76
+
77
+
- `logscale::Bool=true`: Use logarithmic scale on the x-axis (default: true). Useful for viewing performance across a wide range of ratios.
78
+
- `sampletol::Number=0`: Tolerance for sampling data points. Can reduce plot complexity for large datasets.
79
+
- `title::String=""`: Title for the plot
80
+
81
+
For more details on performance profiles, see: Dolan, E. D., & Moré, J. J. (2002). Benchmarking optimization software with performance profiles. Mathematical Programming, 91(2), 201-213.
0 commit comments