---
title: benchmark
page-cloud: true
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.118.0
latest-redpanda-tag: v26.2.7
docname: connect/components/processors/benchmark
page-component-name: cloud-data-platform
page-version: master
page-component-version: master
page-component-title: Cloud
page-relative-src-path: connect/components/processors/benchmark.adoc
page-edit-url: https://github.com/redpanda-data/cloud-docs/edit/main/modules/develop/pages/connect/components/processors/benchmark.adoc
description: Logs basic throughput statistics of messages that pass through this processor.
page-self-managed-available: "true"
page-self-managed-available-url: https://docs.redpanda.com/connect/components/processors/benchmark/
page-git-created-date: "2024-12-16"
page-git-modified-date: "2026-10-19"
page-generated-sources:
  - include: connect:components:partial$descriptions/processors/benchmark.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
page-generated-content: partial
---

# benchmark

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [cloud-data-platform-full.txt](https://docs.redpanda.com/cloud-data-platform-full.txt)

<!-- Source: https://docs.redpanda.com/cloud-data-platform/develop/connect/components/processors/benchmark.md -->

Logs basic throughput statistics of messages that pass through this processor.

Logs messages per second and bytes per second of messages that are processed at a regular interval. A summary of the amount of messages processed over the entire lifetime of the processor will also be printed when the processor shuts down.

Each rolling log line has the form `rolling stats: <n> msg/sec, <size>/sec`, for example `rolling stats: 1 msg/sec, 407 B/sec`. The shutdown summary uses the same form with `total stats`. When `count_bytes` is `false`, the lines omit the bytes figure.

This processor exposes the following metrics:

-   `benchmark_messages_per_second` (gauge): The current throughput in messages per second.

-   `benchmark_messages_total` (counter): The total number of messages processed.

-   `benchmark_bytes_per_second` (gauge): The current throughput in bytes per second.

-   `benchmark_bytes_total` (counter): The total number of bytes processed.


#### Common

```yml
processor:
  label: ""
  benchmark:
    interval: 5s
    count_bytes: true
```

#### Advanced

```yml
processor:
  label: ""
  benchmark:
    interval: 5s
    count_bytes: true
```

## Fields

### `count_bytes`

Whether to measure the number of bytes per second of throughput. If set to `true`, structured data must be serialized to count the number of bytes processed, which can unnecessarily degrade performance if serialization is not required elsewhere in your pipeline.

**Type**: `bool`

**Default**: `true`

### `interval`

How often to emit rolling statistics. Set to `0` to log only summary statistics when the processor shuts down.

**Type**: `string`

**Default**: `5s`