Generator

The four that ship, audited on random input

Rendered here at the parameters it defaults to, with every essay that calls it — which is the same list as the blast radius of changing it.
The four that ship, audited on random inputEach declares a complexity class; the class is fitted to comparison counts over fitted n = 256–16,384 and granted only if the ratio count ⁄ f(n) stays flat to within 1.6. The bar is that spread, so shorter is a better fit and 1.0 would be exact. All four claims hold. The range starts at 256 rather than at 32, because below a few hundred elements each of these is its own insertion cutoff and the fit would be measuring the threshold.algorithmspread of count ⁄ f(n) — 1.0 is exactTimsortPython, Java objects, Rust, Android1.085n log nIntrosortC++ std::sort1.125n log nPattern-defeating quicksortRust unstable sort, Boost, libstdc++ 141.039n log nDual-pivot quicksortJava Arrays.sort, primitives1.094n log ntolerance 1.6fitted n = 256–16,384comparisons, counted exactly

The four that ship, audited on random input

Each declares a complexity class; the class is fitted to comparison counts over fitted n = 256–16,384 and granted only if the ratio count ⁄ f(n) stays flat to within 1.6. The bar is that spread, so shorter is a better fit and 1.0 would be exact. All four claims hold. The range starts at 256 rather than at 32, because below a few hundred elements each of these is its own insertion cutoff and the fit would be measuring the threshold.

Drawn at 700 × 248, wide on the page. Everything above is what library-audit returns with no arguments; the caption is the generator's own, computed from the numbers in the drawing rather than written beside it.

1 essay calls library-audit. The drawing above is what it returns with no arguments at all; every call below passes it something, because a placement that passes nothing draws whichever member of the family the generator happens to default to rather than the one its essay argues about — which is what optcheck and figfill exist to catch.

Where it is called

Changing this generator changes every one of these figures.

The library, page 2 of 5 — where library-audit sits