Skip to content

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.

Import:

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

Signature:

function generatePerformanceVault(options: GeneratePerformanceVaultOptions): Record<string, string>

Parameters:

Parameter Type Description
options GeneratePerformanceVaultOptions Corpus dimensions and scenario counts.

Returns: Record<string, string> — Vault-relative markdown paths mapped to text, suitable for TemporaryVault.populate().