# Function runOperationBenchmark

- runOperationBenchmark(
  operation: string,
  datasetSize: number,
  fn: BenchmarkOperation,
  config?: Partial<BenchmarkConfig>,
  ): Promise<OperationBenchmark>

  Run a single operation benchmark.

  #### Parameters

  - operation: string
  - datasetSize: number
  - fn: BenchmarkOperation
  - config: Partial<BenchmarkConfig> = {}

  #### Returns Promise<OperationBenchmark>

  - Defined in packages/nexus-agents/src/benchmarks/benchmark-runner.ts:150