bench_constants.ts

The id lists and thresholds that the results schema, the harness, and the pages of the site all read. The module imports nothing, so a page can use them without loading the schema, and the harness and the site can't disagree.

view source

Declarations
#

7 declarations

BENCH_MODES
#

bench_constants.ts view source

readonly ["tokenize", "html"] import {BENCH_MODES} from '@ryanatkn/syntax-highlighter-bench/bench_constants.js';

The stages a cell runs, in display order.

BENCH_SIZES
#

bench_constants.ts view source

readonly ["micro", "small", "medium", "large"] import {BENCH_SIZES} from '@ryanatkn/syntax-highlighter-bench/bench_constants.js';

The size tiers of an input, smallest first.

BENCH_SOURCES
#

bench_constants.ts view source

readonly ["neutral", "shiki", "home", "harness", "stress"] import {BENCH_SOURCES} from '@ryanatkn/syntax-highlighter-bench/bench_constants.js';

Where an input came from, the primary set first and the stress inputs last.

BENCH_WRITTEN_SOURCES
#

bench_constants.ts view source

readonly ["harness", "stress"] import {BENCH_WRITTEN_SOURCES} from '@ryanatkn/syntax-highlighter-bench/bench_constants.js';

The sources whose inputs may be written for this benchmark, with no upstream file.

HEAP_TOLERANCE_KB
#

bench_constants.ts view source

16 import {HEAP_TOLERANCE_KB} from '@ryanatkn/syntax-highlighter-bench/bench_constants.js';

Two retained-heap readings (BenchHeap), in KiB, are the same reading when they are this close, or HEAP_TOLERANCE_RATIO of the larger, whichever is larger. Readings agree to well under a kibibyte; the margin keeps a reading from being the one number of the deterministic file that fails a check on an unchanged tree.

HEAP_TOLERANCE_RATIO
#

SPREAD_DISTURBED_ABOVE
#

bench_constants.ts view source

1.25 import {SPREAD_DISTURBED_ABOVE} from '@ryanatkn/syntax-highlighter-bench/bench_constants.js';

A library whose rounds on a cell are further apart than this, slowest over fastest, was disturbed by something. A timed run measures it there again, the run's summary lists the ones still past it, and the site marks them.

Imported by
#