Add Octave reference timings
2 changed files+16−12
README.mdmodified+6−6View file
@@ -24,12 +24,12 @@ in the browser.
2424
2525 Reference desktop timings, Delaunay in ms (one Linux laptop — hardware-dependent):
2626
27- | N | numbl 2D | numbl 3D | MATLAB 2D | MATLAB 3D |
28- |--------|---------:|---------:|----------:|----------:|
29- | 1,000 | 4.1 | 16.5 | 21.1 | 21.3 |
30- | 5,000 | 18.6 | 54.3 | 28.6 | 185.5 |
31- | 20,000 | 65.5 | 287.3 | 179.9 | 624.2 |
32- | 50,000 | 154.7 | 757.0 | 373.8 | 1703.9 |
27+ | N | numbl 2D | numbl 3D | Octave 2D | Octave 3D | MATLAB 2D | MATLAB 3D |
28+ |--------|---------:|---------:|----------:|----------:|----------:|----------:|
29+ | 1,000 | 4.1 | 16.5 | 4.5 | 10.1 | 21.1 | 21.3 |
30+ | 5,000 | 18.6 | 54.3 | 12.2 | 61.3 | 28.6 | 185.5 |
31+ | 20,000 | 65.5 | 287.3 | 55.6 | 336.3 | 179.9 | 624.2 |
32+ | 50,000 | 154.7 | 757.0 | 174.9 | 973.9 | 373.8 | 1703.9 |
3333
3434 ## Develop
3535
src/components/Benchmarks.tsxmodified+10−6View file
@@ -11,11 +11,11 @@ const SIZES = [1000, 5000, 20000, 50000]
1111
1212 // Reference timings from running scripts/qhull_benchmark.m on a Linux laptop.
1313 // Hardware-dependent — for rough comparison only.
14-const REFERENCE: { n: number; numbl: [number, number]; matlab: [number, number] }[] = [
15- { n: 1000, numbl: [4.1, 16.5], matlab: [21.1, 21.3] },
16- { n: 5000, numbl: [18.6, 54.3], matlab: [28.6, 185.5] },
17- { n: 20000, numbl: [65.5, 287.3], matlab: [179.9, 624.2] },
18- { n: 50000, numbl: [154.7, 757.0], matlab: [373.8, 1703.9] },
14+const REFERENCE: { n: number; numbl: [number, number]; octave: [number, number]; matlab: [number, number] }[] = [
15+ { n: 1000, numbl: [4.1, 16.5], octave: [4.5, 10.1], matlab: [21.1, 21.3] },
16+ { n: 5000, numbl: [18.6, 54.3], octave: [12.2, 61.3], matlab: [28.6, 185.5] },
17+ { n: 20000, numbl: [65.5, 287.3], octave: [55.6, 336.3], matlab: [179.9, 624.2] },
18+ { n: 50000, numbl: [154.7, 757.0], octave: [174.9, 973.9], matlab: [373.8, 1703.9] },
1919 ]
2020
2121 interface Row { n: number; ms2: number; ms3: number; simp2: number; simp3: number }
@@ -119,13 +119,15 @@ export function Benchmarks() {
119119 <Typography variant="caption" color="text.secondary">
120120 Measured on one Linux laptop — hardware-dependent, for rough comparison only.
121121 </Typography>
122- <TableContainer component={Paper} variant="outlined" sx={{ maxWidth: 560 }}>
122+ <TableContainer component={Paper} variant="outlined" sx={{ maxWidth: 720 }}>
123123 <Table size="small">
124124 <TableHead>
125125 <TableRow>
126126 <TableCell>N</TableCell>
127127 <TableCell align="right">numbl 2D</TableCell>
128128 <TableCell align="right">numbl 3D</TableCell>
129+ <TableCell align="right">Octave 2D</TableCell>
130+ <TableCell align="right">Octave 3D</TableCell>
129131 <TableCell align="right">MATLAB 2D</TableCell>
130132 <TableCell align="right">MATLAB 3D</TableCell>
131133 </TableRow>
@@ -136,6 +138,8 @@ export function Benchmarks() {
136138 <TableCell>{r.n.toLocaleString()}</TableCell>
137139 <TableCell align="right">{r.numbl[0].toFixed(1)}</TableCell>
138140 <TableCell align="right">{r.numbl[1].toFixed(1)}</TableCell>
141+ <TableCell align="right">{r.octave[0].toFixed(1)}</TableCell>
142+ <TableCell align="right">{r.octave[1].toFixed(1)}</TableCell>
139143 <TableCell align="right">{r.matlab[0].toFixed(1)}</TableCell>
140144 <TableCell align="right">{r.matlab[1].toFixed(1)}</TableCell>
141145 </TableRow>