# Function runBenchmark

- runBenchmark<TInstance, TPrediction, TEvalResult>(
  adapter: BenchmarkAdapter<TInstance, TPrediction, TEvalResult>,
  config: Record<string, unknown>,
  options?: BenchmarkOrchestratorOptions,
  ): Promise<BenchmarkRunSummary>

  Execute one adapter end-to-end. Returns the adapter-produced summary.

  Behavioral notes:

  - An instance failure (either runInstance or evaluate throws) is captured as a failure count in summary metadata; the run continues.
  - Timeouts cancel via AbortController; adapters should honor `ctx.signal`.

  #### Type Parameters

  - TInstance
  - TPrediction
  - TEvalResult

  #### Parameters

  - adapter: BenchmarkAdapter<TInstance, TPrediction, TEvalResult>
  - config: Record<string, unknown>
  - options: BenchmarkOrchestratorOptions = {}

  #### Returns Promise<BenchmarkRunSummary>

  - Defined in packages/nexus-agents/src/benchmarks/orchestrator.ts:100