Skip to content

GeneratePerformanceVaultOptions

Options for an exactly sized performance corpus.

Import:

import type { GeneratePerformanceVaultOptions } from '@mnaoumov/obsidian-dev-toolkit/test-runners/performance-vault';

Signature:

export interface GeneratePerformanceVaultOptions

Properties

PropertyTypeDescription
cyrillicShare?numberFraction of filler notes using Cyrillic prose, rounded down. Defaults to 0.25.
deletionCount?numberNotes in EACH deletion folder. Defaults to 1000.
filesPerFolder?numberFiller notes per directory. Defaults to 30.
linkerCount?numberNotes linking to target.md. Defaults to 50.
mentionCount?numberNotes containing prose and periodic unlinked mentions. Defaults to 1000.
mentionInterval?numberEvery nth mention note names the target. Defaults to 25.
noteCount?numberTotal markdown note count, INCLUDING fixtures. Defaults to 37,000.
prose?PerformanceVaultProseHow filler notes are written. 'repeated' (the default) repeats one sentence per language. 'varied' samples seeded, Zipf-distributed words from a synthetic vocabulary per language and plants PERFORMANCE_VAULT_PLANTED_TERMS.
proseSeed?numberSeed of the 'varied' prose. Defaults to 1. Ignored for 'repeated' prose.
rareTokenShare?numberFraction of 'varied' prose words, after the first of each sentence, replaced by a rare token: half id-like tokens (hashes, dates, slugs) and half words of letters drawn by frequency rather than by syllable. They give the corpus the long tail of rare trigrams a real vault's names, links and numbers add. Defaults to 0.02. 0 reproduces the 'varied' corpus of 7.2.0 byte for byte. Ignored for 'repeated' prose.
totalBytes?numberExact UTF-8 CONTENT bytes, INCLUDING fixtures. Defaults to 110,000,000 (decimal MB).

Links to this page: