GeneratePerformanceVaultOptions
Options for an exactly sized performance corpus.
Import:
import type { GeneratePerformanceVaultOptions } from '@mnaoumov/obsidian-dev-toolkit/test-runners/performance-vault';Signature:
export interface GeneratePerformanceVaultOptionsProperties
| Property | Type | Description |
|---|---|---|
| cyrillicShare? | number | Fraction of filler notes using Cyrillic prose, rounded down. Defaults to 0.25. |
| deletionCount? | number | Notes in EACH deletion folder. Defaults to 1000. |
| filesPerFolder? | number | Filler notes per directory. Defaults to 30. |
| linkerCount? | number | Notes linking to target.md. Defaults to 50. |
| mentionCount? | number | Notes containing prose and periodic unlinked mentions. Defaults to 1000. |
| mentionInterval? | number | Every nth mention note names the target. Defaults to 25. |
| noteCount? | number | Total markdown note count, INCLUDING fixtures. Defaults to 37,000. |
| prose? | PerformanceVaultProse | How 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? | number | Seed of the 'varied' prose. Defaults to 1. Ignored for 'repeated' prose. |
| rareTokenShare? | number | Fraction 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? | number | Exact UTF-8 CONTENT bytes, INCLUDING fixtures. Defaults to 110,000,000 (decimal MB). |
Links to this page: