session-open.constants.ts 639 B

123456789101112
  1. /** Stable identity and released storage location for the Session-opening workload. */
  2. import { join } from 'node:path'
  3. /** Session id encoded in the fixture and used for every measured open. */
  4. export const SYNTHETIC_SESSION_ID = 'bench-session'
  5. /** Stable logical working directory encoded in the fixture header. */
  6. export const SYNTHETIC_SESSION_CWD = '/bench'
  7. /** Storage directory derived from the fixture's cwd and Session id. */
  8. export const SYNTHETIC_SESSION_DIRECTORY = join('--bench--', SYNTHETIC_SESSION_ID)
  9. /** Canonical released-v0 Zstandard generation filename. */
  10. export const SYNTHETIC_V0_FILENAME = 'session.jsonl.zstd'