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.
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.
7 declarations
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_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_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_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.
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.
bench_constants.ts view source
0.005 import {HEAP_TOLERANCE_RATIO} from '@ryanatkn/syntax-highlighter-bench/bench_constants.js'; The relative margin of HEAP_TOLERANCE_KB.
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.