Skip to content

test-runners/performance-vault

Deterministic, exactly sized markdown corpora for performance measurements.

Interface Description
GeneratePerformanceVaultOptions Options for an exactly sized performance corpus.
PerformanceVaultPlantedTerm A term planted in 'varied' filler notes at a fixed document frequency.
Function Description
generatePerformanceVault Generates a deterministic corpus without reading environment variables or writing files. Fixture counts may be zero; at least one filler note must remain to absorb the byte budget.
Type Description
PerformanceVaultProse How filler notes are written: one repeated sentence, or seeded Zipf-distributed words.
Variable Description
PERFORMANCE_VAULT_DELETE_FOLDER_A First of two identical deletion fixture folders.
PERFORMANCE_VAULT_DELETE_FOLDER_B Second deletion fixture folder.
PERFORMANCE_VAULT_DELETE_TARGET Separate target used by the deletion fixtures.
PERFORMANCE_VAULT_FILLER_FOLDER Folder containing unrelated prose notes.
PERFORMANCE_VAULT_LINKER_FOLDER Folder containing the link fixtures.
PERFORMANCE_VAULT_MENTION_FOLDER Folder containing the unlinked-mention fixtures.
PERFORMANCE_VAULT_PLANTED_TERMS Rare terms planted in 'varied' filler notes: filler note i contains each term whose interval divides i, so a term occurs in exactly Math.ceil(fillerCount / interval) notes, once in each.
PERFORMANCE_VAULT_TARGET The target used by link and unlinked-mention fixtures.
PERFORMANCE_VAULT_VOCABULARY_SIZE Distinct words in each language’s 'varied' vocabulary.