Skip to content

AutoEQ Benchmarks

modernGraphTool’s AutoEQ runs turboEQ, a WebAssembly port of AutoEq’s optimizer. This page compares it, as an algorithm, with the optimizers it replaces and with the one it was ported from. Every engine fits the same 178 real IEM measurements under the same constraints.

  • It is two orders of magnitude faster. With eight bands, turboEQ’s median run is 4.6 ms. CrinGraph’s optimizer takes 1.30 s and modernGraphTool’s old TypeScript one 2.14 s.
  • It returns the number of bands you ask for, every time. Asked for eight, CrinGraph returned eight for 87% of the measurements and the old optimizer for 22%.
  • Exact match fits closest from eight bands up. At ten bands, its median error across 20 Hz–20 kHz is 0.49 dB, against 0.76 for the old optimizer and 1.24 for CrinGraph. At eight it leads by less (0.76 against 0.87), and its bad cases are less bad (1.47 against 2.01 at the 90th percentile). On headphones it leads at every band count.
  • With five bands on IEMs, the old optimizer scores better, mostly on level. It reaches 1.17 dB against exact match’s 1.27. Where turboEQ loses explains why.
  • Treble-safe stays close to AutoEq. Given the same constraints, its EQ lands 0.15 dB (median) from AutoEq’s when both run to convergence. For comparison, AutoEq’s own early stopping moves AutoEq’s answer by 0.07 dB.
  • Exact match needs the most headroom in the worst cases. Like CrinGraph and the old optimizer, it limits each band and not the whole EQ, so a curve far below the target can take 20 dB of boost or more. Treble-safe, like AutoEq, keeps the whole EQ near 6 dB. See Boost.

Every engine got the same limits on each band:

LimitValue
Q0.1–10
Gain−20 to +20 dB
Where a band may sit20 Hz–20 kHz

Some differences between the engines are part of the method and stay:

  • CrinGraph has no shelf filters, so all of its bands are peaking. The others use a low and a high shelf once there are four bands or more, and place them themselves. turboEQ and AutoEq keep shelf Q between 0.4 and 0.7.
  • Treble-safe places no band above 10 kHz, because above that it scores only the overall level, not the shape.
  • Treble-safe and AutoEq also cap the whole EQ’s largest boost at AutoEq’s own 6 dB, as the panel runs treble-safe. The other engines limit each band on its own and nothing more.

Band counts below are totals, shelves included. Ten bands is the layout of AutoEq’s 8_PEAKING_WITH_SHELVES preset.

Median time for one fit, in milliseconds. The last column is the 90th percentile at ten bands.

Engine5 bands8 bands10 bands10 bands, p90
CrinGraph7641,3001,6201,830
mGT TypeScript9162,1402,9803,490
turboEQ · Exact match1.54.68.516
turboEQ · Treble-safe2.5102251
AutoEq (Python)46113181271

At eight bands, turboEQ is about 280× faster than CrinGraph and 470× faster than the old optimizer. On the same work as AutoEq itself, the curve processing plus the fit, treble-safe is about 11× faster than the Python original.

CrinGraph runs on the page’s main thread, so the page freezes for as long as the fit takes. modernGraphTool runs AutoEQ in a web worker, and the TypeScript fallback runs there too.

How close the equalized curve lands to the target, as RMS error in dB after removing the overall level offset. Lower is better. Without any EQ, the median error is 3.04 dB across 20 Hz–20 kHz and 2.24 dB below 10 kHz.

Across 20 Hz–20 kHz, median with the 90th percentile in parentheses:

Engine5 bands8 bands10 bands
CrinGraph2.01 (3.04)1.47 (2.84)1.24 (2.60)
mGT TypeScript1.17 (2.28)0.87 (2.01)0.76 (1.92)
turboEQ · Exact match1.27 (2.32)0.76 (1.47)0.49 (1.14)
turboEQ · Treble-safe1.74 (2.64)1.65 (2.61)1.65 (2.57)
AutoEq (Python)1.78 (2.65)1.71 (2.60)1.72 (2.63)

Below 10 kHz, median. This leaves out the region AutoEq deliberately does not shape:

Engine5 bands8 bands10 bands
CrinGraph0.820.370.27
mGT TypeScript0.660.500.45
turboEQ · Exact match0.830.430.24
turboEQ · Treble-safe0.910.810.79
AutoEq (Python)0.930.830.82

How often the requested band count came back:

Engine5 bands8 bands10 bands
CrinGraph94%87%65%
mGT TypeScript58%22%5%
turboEQ (both modes) and AutoEq100%100%100%

CrinGraph’s search stops once it runs out of candidate peaks and dips. The TypeScript optimizer also drops bands it judges ineffective, so its numbers above often come from fewer bands than asked.

Treble-safe scores worse on purpose. It smooths the treble, scores only the level above 10 kHz and places no band there. That gives up matching the graph in exchange for a correction that holds up when the treble measurement can’t be trusted.

Exact match, like the TypeScript optimizer, will use narrow, deep bands when they fit. Whether those are an improvement you can hear is a separate question. The error here is measured against the same measurement the EQ was fitted to, and narrow features in the treble move with fit and seating, so a band aimed exactly at one may miss it on your head.

The largest boost each EQ applies, in dB, which is what the preamp gives back: an EQ that boosts 6 dB somewhere plays 6 dB quieter. Median, with the 90th percentile in parentheses:

Engine5 bands8 bands10 bands
CrinGraph5.5 (9.5)6.3 (10.4)6.2 (11.0)
mGT TypeScript5.7 (11.2)6.0 (12.3)6.2 (13.0)
turboEQ · Exact match6.5 (12.3)7.0 (14.8)6.9 (15.6)
turboEQ · Treble-safe4.6 (6.5)5.0 (6.4)5.1 (6.3)
AutoEq (Python)4.6 (6.6)4.9 (6.3)4.9 (6.3)

Treble-safe and AutoEq cap the whole EQ at 6 dB. Their bands overshoot the cap a little, but rarely by much. The other three engines limit each band and nothing else, so where a measurement falls far below the target, usually an IEM whose treble rolls off, they stack bands, and their worst curves need 20 to 30 dB, exact match’s the most.

With the panel’s own default ranges, ±12 dB per band and bands up to 15 kHz, exact match’s largest boost at eight bands is 22 dB, and 8 of the 178 curves need more than 15 dB. Fit mode says what to do when that costs too much loudness.

With five bands on IEMs, the old TypeScript optimizer scores 1.17 dB against exact match’s 1.27. Almost all of that is level. The scores on this page remove the overall level offset, the most generous way to line two curves up, and the TypeScript optimizer’s answers lean on it. Line the curves up the way AutoEq does instead, by the mean error between 100 Hz and 10 kHz before any EQ, and it scores 1.73 while exact match stays at 1.27. turboEQ fits at a fixed level, so its score does not move.

What is left is the optimizer itself. With so few bands, turboEQ sometimes settles in a local minimum from the layout AutoEq’s init() starts it in. Its own objective rates the TypeScript answer better on 47 of the 178 curves at five bands, 10 at eight and none at ten.

How different each engine’s EQ is from what upstream AutoEq by jaakkopasanen produces for the same measurement, under the same constraints: the RMS difference between the two EQ curves over 20 Hz–20 kHz, level offset removed. Median, with the 90th percentile in parentheses.

Engine8 bands10 bands
CrinGraph1.32 (2.20)1.33 (2.13)
mGT TypeScript1.37 (2.03)1.44 (2.05)
turboEQ · Exact match1.43 (2.07)1.59 (2.21)
turboEQ · Treble-safe0.18 (0.53)0.19 (0.59)
AutoEq, run to convergence0.07 (0.20)0.07 (0.16)

The last row compares AutoEq with itself, with and without the preset’s early stopping (min_std). turboEQ always runs to convergence. Measured against converged AutoEq instead, treble-safe is 0.15 dB away at eight bands and 0.17 at ten. With the shelves pinned where AutoEq’s presets put them, the same comparison gives 0.10 at eight bands: letting the shelves move gives two optimizers more places to settle apart.

Exact match is as far from AutoEq as the other engines are, and that is intended. It fits a different target: the curve as the graph shows it.

The headphone set is small: 15 curves from seven headphones, six of them one headphone in different EQ modes. Treat it as a consistency check rather than a second result. At eight bands:

EngineMedian timeBand count20 Hz–20 kHzBelow 10 kHz
CrinGraph1.50 s100%3.220.87
mGT TypeScript1.97 s40%1.421.05
turboEQ · Exact match3.5 ms100%1.320.80
turboEQ · Treble-safe6.2 ms100%1.940.99
AutoEq (Python)140 ms100%2.031.03

Exact match leads at five and ten bands too, across the full band (1.64 against 1.80, and 1.15 against 1.27). It can follow the narrow peaks and notches of a headphone’s treble, because the penalty on steep bands and the extra smoothing AutoEq applies to its target are off in exact mode.

CrinGraphmGT TypeScript (fallback)turboEQ in modernGraphToolAutoEq (Python)
OptimizerGreedy candidate search, then grid refinementCrinGraph lineage, plus shelves and pruningAll parameters at once, with analytic gradientsAll parameters at once, SciPy SLSQP
Filter typesPeakingPeaking, low and high shelfPeaking, low and high shelf placed by the fitPeaking, shelves (its presets pin them)
Returns the band countOften fewerOften fewerAlwaysAlways
RangesClamped after the fitLimit the searchBounds inside the optimizerBounds inside the optimizer
Sharp filtersAllowedAllowedExact match: allowed. Treble-safe: penalizedPenalized above ~18 dB/octave
Level alignmentWhatever the graph’s normalization givesPinned at 1 kHzMinimum mean error, 100 Hz–10 kHzMinimum mean error, 100 Hz–10 kHz
TrebleFirst pass skips above 7 kHzFitted like everything elseExact match: full shape. Treble-safe: AutoEq’s handlingSmoothed, level only above 10 kHz
Boost limitPer bandPer bandExact match: per band. Treble-safe: whole EQ, 6 dBWhole EQ, 6 dB by default
Graphic EQ presetsNoNoYes, gain only on the preset’s bandsYes, fixed-band EQ
RunsPage’s main threadWeb workerWeb worker, WebAssembly (about 37 KB gzipped)Python
  • Data. The measurements of silicagel.squig.link database. One measurement per device, the first file of each phone_book.json entry, left and right averaged: 178 IEM curves. Every headphone measurement was used, all 15, because there were so few. Targets were Harman IE 2019v2 for IEMs and Harman 2018 for headphones.
  • Inputs. Each engine got its curves the way its own app prepares them. CrinGraph: its 1/48-octave grid and 60-phon loudness normalization. modernGraphTool: 1/48-octave smoothing and 500 Hz normalization. AutoEq: the raw average, as its command line takes it.
  • Scoring. Every engine’s filters went through the same biquads at 48 kHz, were added to the raw measurement, and were compared with the raw target on a 1/48-octave grid.
  • Timing. The engine call alone, one fit after another, after a warm-up fit. The JavaScript engines ran under Node 24.16 on V8, which is the engine Chrome runs. In the app, a run also pays a message round trip to the worker. AutoEq ran under Python 3.14.3, NumPy 2.5.3 and SciPy 1.18.1.
  • Versions. turboEQ 0.3.1, CrinGraph from squiglink/lab main at 9ff842c, AutoEq v4.1.2.
  • Machine. Intel Core i7-14700, 32 GB, Windows 11. Measured 2026-11-27.

Timings don’t carry over to other machines.

The harness lives in scripts/bench-autoeq/. It needs a checkout of squiglink/lab, a checkout of AutoEq, and a measurement folder with a phone_book.json. The constraints default to the ones above and can be changed with --q, --gain and --fc:

Terminal window
node scripts/bench-autoeq/run.mjs --data DATA_DIR --target TARGET.txt \
--lab LAB_REPO --out iem.jsonl
python scripts/bench-autoeq/upstream.py --autoeq AUTOEQ_REPO \
--curves iem.curves.json --out iem-upstream.jsonl
node scripts/bench-autoeq/score.mjs --curves iem.curves.json iem.jsonl iem-upstream.jsonl

upstream.py reads the constraints from iem.curves.json, so AutoEq runs under the same ones. It needs NumPy, SciPy, Matplotlib, tabulate and PyYAML, since AutoEq imports all of them. The headphone numbers add --all-files to run.mjs, which takes every measurement of each entry rather than its first.