# Synthetic history benchmark [`synthetic-history.mjs`]() measures **plugin CPU and scheduling with a fake in-memory `sessionQuery`**, not DSH disk-log retrieval, replay, FTS, network latency, or installed-profile behavior. All events, credentials, paths and identifiers are invented. No real history or external service is read. ## Run From the repository root, with an existing Node.js runtime: ```sh node --expose-gc --max-old-space-size=384 bench/synthetic-history.mjs ``` Optional arguments: - `--samples=5`: 3–9 samples per scenario, after one warmup; default 5. - `--modules=`: use an existing local snapshot of the six plugin modules instead of `lib`. The snapshot must be ESM and preserve the modules' relative imports. No downloading is performed. - `--label=