# Function runConsolidationBenchmark

- runConsolidationBenchmark(
  operations: readonly ConsolidationOperation[],
  config?: Partial<MemoryBenchmarkConfig>,
  ): Promise<ConsolidationBenchmarkResult>

  Run consolidation benchmarks on a set of operations.

  Measures latency and throughput of promotion, decay, and eviction operations that maintain memory health over time.

  #### Parameters

  - operations: readonly ConsolidationOperation[]
  - config: Partial<MemoryBenchmarkConfig> = {}

  #### Returns Promise<ConsolidationBenchmarkResult>

  - Defined in packages/nexus-agents/src/benchmarks/consolidation-benchmark.ts:41