Skip to main content

Stress Test Results

Long-running stress tests comparing sustained performance between Dekaf and Confluent.Kafka under real-world load.

Last Updated: 2026-11-23 10:19 UTC

info

The paired Dekaf vs Confluent comparison runs on demand (full_run=true from main) and updates this page. Manual dispatches stay Dekaf-only unless full_run explicitly requests the same paired publish path. Tests measure sustained performance over 15+ minutes with real Kafka instances.

At a glance​

Each row is a like-for-like comparison: both clients run the same sustained workload sequentially on the same VM, and repeated samples are aggregated with a geometric mean across both run orders.

Paired same-VM stress runSustained throughputBroker-confirmed messages per second for the same workload.

Bars are scaled within each scenario for a direct client-to-client comparison.

Median client CPU timeCPU cost per messageCPU time needed to deliver one message; shorter bars are better.

Bars are scaled within each scenario for a direct client-to-client comparison.

ScenarioDekafConfluentThroughputCPU per message
Produce — fire-and-forget1,241,052 msg/s790,944 msg/s1.6× faster2.5× less
Produce — fire-and-forget (3 brokers)1,006,099 msg/s664,664 msg/s1.5× faster2.1× less
Produce — acks=all1,336,522 msg/s1,099,623 msg/s1.2× faster2.3× less
Produce — acks=all (3 brokers)1,153,530 msg/s905,404 msg/s1.3× faster2.0× less
Produce — fire-and-forget, idempotent1,398,546 msg/s995,219 msg/s1.4× faster2.4× less
Produce — fire-and-forget, idempotent (3 brokers)836,526 msg/s558,636 msg/s1.5× faster2.5× less
Produce + consume round-trip2,670,824 msg/s1,778,286 msg/s1.5× faster1.9× less
Produce — transactional (exactly-once) (3 brokers)1,141 msg/s171 msg/s6.7× faster1.1× less
Consume — messages1,508,712 msg/s979,922 msg/s1.5× faster1.7× less
Consume — batches1,580,569 msg/s———
Consume — raw bytes3,231,688 msg/s———
Consume — raw byte batches3,576,536 msg/s———

"On par" means within ±5% — differences that small are run-to-run noise. "CPU per message" compares the client CPU cost of delivering one message; "less" means Dekaf needs less CPU. Rows showing "—" have no Confluent counterpart in this run (for example, batch and raw consume APIs that librdkafka does not expose). The full per-run data is below.

Full results​

Each section holds the measured per-run data behind the summary: repeated same-VM samples in both client orders, CPU per message and per request, and throughput drift across the run.

Producer (Fire-and-Forget) (15 minutes, 1000B messages)

Order-Balanced Aggregate

ClientSamplesGeomean comparison msg/sSample rangeMedian CPU μs/msgComparison Ratio
Dekaf21,241,0521,216,500–1,266,0980.821.57x
Confluent2790,944737,854–847,8532.101.00x

The aggregate uses the geometric mean across balanced same-VM samples run in both dekaf-first and confluent-first order. Raw ordered samples remain below.

ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf (3conn)0.83784.071,644,6171,613,432-7.0%-0.69%1568.431,644,61701.36
Dekaf (adaptive)0.88801.871,406,5391,390,534+4.9%+0.46%1341.381,406,53901.24
Dekaf (dekaf-first)0.81784.431,275,4231,266,098-4.0%-0.55%1216.341,275,42301.03
Dekaf (confluent-first)0.84783.921,202,4031,216,500+11.1%+0.97%1146.701,202,40301.01
Confluent (confluent-first)1.97-892,209847,853-13.1%-1.07%850.88892,20901.76
Confluent (dekaf-first)2.23-779,728737,854+4.7%-0.04%743.61779,72801.74

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Messages/sec counts broker-confirmed deliveries (end-offset delta). Accepted msg/s is the client-side append rate — a large gap means messages were buffered or dropped without ever reaching the broker.

Producer (Fire-and-Forget), 3 Brokers (15 minutes, 1000B messages)
ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf1.161052.631,001,3011,006,099+2.6%+0.24%954.921,001,30101.17
Dekaf (adaptive)1.291138.48975,039969,624+6.4%+0.74%929.87975,03901.26
Dekaf (3conn)1.441172.45830,934865,590+20.5%+1.36%792.44830,93401.20
Confluent2.42-665,132664,664-1.9%-0.21%634.32665,13201.61

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Messages/sec counts broker-confirmed deliveries (end-offset delta). Accepted msg/s is the client-side append rate — a large gap means messages were buffered or dropped without ever reaching the broker.

Producer (Acks All) (15 minutes, 1000B messages)

Order-Balanced Aggregate

ClientSamplesGeomean comparison msg/sSample rangeMedian CPU μs/msgComparison Ratio
Dekaf21,336,5221,287,629–1,387,2720.671.22x
Confluent21,099,6231,074,842–1,124,9761.571.00x

The aggregate uses the geometric mean across balanced same-VM samples run in both dekaf-first and confluent-first order. Raw ordered samples remain below.

ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf (dekaf-first)0.68644.831,371,4981,387,272-6.0%-0.57%1307.961,371,49800.93
Dekaf (confluent-first)0.67631.351,306,2881,287,629-6.4%-0.53%1245.771,306,28800.87
Confluent (confluent-first)1.53-1,118,1121,124,976-0.3%-0.03%1066.321,118,11201.71
Confluent (dekaf-first)1.62-1,055,0741,074,842-9.2%-0.81%1006.201,055,07401.71

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Messages/sec counts broker-confirmed deliveries (end-offset delta). Accepted msg/s is the client-side append rate — a large gap means messages were buffered or dropped without ever reaching the broker.

Producer (Acks All), 3 Brokers (15 minutes, 1000B messages)
ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf0.87865.081,132,8081,153,530-4.1%-0.27%1080.331,132,80800.99
Confluent1.74-898,174905,404-0.2%-0.07%856.57898,17401.56

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Messages/sec counts broker-confirmed deliveries (end-offset delta). Accepted msg/s is the client-side append rate — a large gap means messages were buffered or dropped without ever reaching the broker.

Producer (Fire-and-Forget, Idempotent) (15 minutes, 1000B messages)

Order-Balanced Aggregate

ClientSamplesGeomean comparison msg/sSample rangeMedian CPU μs/msgComparison Ratio
Dekaf21,398,5461,393,608–1,403,5020.791.41x
Confluent2995,219966,733–1,024,5441.861.00x

The aggregate uses the geometric mean across balanced same-VM samples run in both dekaf-first and confluent-first order. Raw ordered samples remain below.

ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf (3conn)0.77744.141,855,9311,917,940-25.9%-2.00%1769.951,855,93101.42
Dekaf (adaptive)0.80746.451,547,4281,538,389-11.0%-0.93%1475.741,547,42801.24
Dekaf (dekaf-first)0.80800.921,375,4131,403,502-3.9%-0.41%1311.701,375,41301.10
Dekaf (confluent-first)0.78754.861,387,8971,393,608-5.4%-0.44%1323.601,387,89701.08
Confluent (dekaf-first)1.85-937,2091,024,544-1.8%-0.13%893.79937,20901.74
Confluent (confluent-first)1.86-942,333966,733+6.1%+0.31%898.68942,33301.76

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Messages/sec counts broker-confirmed deliveries (end-offset delta). Accepted msg/s is the client-side append rate — a large gap means messages were buffered or dropped without ever reaching the broker.

Producer (Fire-and-Forget, Idempotent), 3 Brokers (15 minutes, 1000B messages)
ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf (3conn)1.131122.93992,0721,001,799+6.8%+0.68%946.11992,07201.12
Dekaf (adaptive)1.161123.91950,805951,037-14.3%-1.40%906.76950,80501.10
Dekaf1.161022.25826,197836,526-10.0%-1.25%787.92826,19700.96
Confluent2.91-575,340558,636+8.8%+0.75%548.69575,34001.67

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Messages/sec counts broker-confirmed deliveries (end-offset delta). Accepted msg/s is the client-side append rate — a large gap means messages were buffered or dropped without ever reaching the broker.

Producer → Consumer Round-Trip Steady State (15 minutes, 128B messages)
ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf0.882969.401,408,9702,670,824+90.7%+865.20%171.991,408,97001.23
Confluent1.67-126,9441,778,286+13.4%+106.91%15.50126,94400.21

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Messages/sec counts broker-confirmed deliveries (end-offset delta). Accepted msg/s is the client-side append rate — a large gap means messages were buffered or dropped without ever reaching the broker.

Round-Trip Validation​

ClientExpectedConsumedMissingDuplicatesCorruptOut of OrderWrong PartitionUnexpectedTimed OutResult
Confluent19,792,47719,792,477000000noPASS
Dekaf19,792,47719,792,477000000noPASS
Producer (Transactional EOS), 3 Brokers (15 minutes, 1000B messages)
ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf196.33196.338501,141+2.8%+0.35%0.811,13300.22
Confluent223.78-127171+2.4%+0.25%0.1217000.04

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Messages/sec counts broker-confirmed deliveries (end-offset delta). Accepted msg/s is the client-side append rate — a large gap means messages were buffered or dropped without ever reaching the broker.

Transaction Verification​

ClientAcceptedCommittedAbortedDeliveredDuplicatesShortfallAborted leaksUnexpectedMissing sentinelsStatus
Confluent152,900114,70038,200114,70000000PASS
Dekaf1,019,900765,000254,900765,00000000PASS
Consumer (15 minutes, 1000B messages, 16,384B seed batches)
ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf0.91-1,506,3621,508,712+0.6%+0.04%1436.58-01.37
Confluent1.53-970,395979,922-6.9%-0.39%925.44-01.48

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Consumer (Batch) (15 minutes, 1000B messages, 16,384B seed batches)
ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf0.87-1,566,0831,580,569+0.8%+0.06%1493.53-01.36

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Consumer (Raw Bytes) (15 minutes, 1000B messages, 16,384B seed batches)
ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf0.49-3,230,7223,231,688-7.3%-0.71%3081.06-01.57

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Consumer (Raw Batch) (15 minutes, 1000B messages, 16,384B seed batches)
ClientCPU μs/msgCPU μs/requestMessages/secMedian msg/sDriftSlope %/minMB/secAccepted msg/sErrorsStanding cores
Dekaf0.42-3,573,7263,576,536+2.1%+0.00%3408.17-01.51

Median msg/s is the median sampled client-side throughput interval; it shows steady-state throughput without letting a short late-run stall dominate the whole-run average.

Rows and Comparison Ratio use Median msg/s when available; older result files without interval samples fall back to Messages/sec.

Drift compares last-third with first-third average throughput. Slope is the normalized least-squares trend; steady-state below 85% of peak or slope below -1%/min fails the regression gate.

Memory & GC statistics — latest run
ClientScenarioGen0Gen1Gen2Total AllocatedAlloc/msg
ConfluentConsumer5171326201984.74 GB2.38 KB
ConfluentProducer (Fire-and-Forget)14456700963.61 GB1.26 KB
ConfluentProducer (Fire-and-Forget)15033400842.33 GB1.26 KB
ConfluentProducer (Fire-and-Forget), 3 Brokers13094800718.44 GB1.26 KB
ConfluentProducer (Acks All)182464001207.82 GB1.26 KB
ConfluentProducer (Acks All)184368001139.61 GB1.26 KB
ConfluentProducer (Acks All), 3 Brokers16958200970.31 GB1.26 KB
ConfluentProducer (Fire-and-Forget, Idempotent)174443001012.44 GB1.26 KB
ConfluentProducer (Fire-and-Forget, Idempotent)153905001017.94 GB1.26 KB
ConfluentProducer (Fire-and-Forget, Idempotent), 3 Brokers9738300621.53 GB1.26 KB
ConfluentProducer → Consumer Round-Trip Steady State53883317.56 GB953 B
ConfluentProducer (Transactional EOS), 3 Brokers10111341.33 MB2.29 KB
DekafConsumer67141002556.00 GB1.98 KB
DekafConsumer (Batch)69809002657.72 GB1.98 KB
DekafConsumer (Raw Bytes)1110444.30 MB0 B
DekafConsumer (Raw Batch)700872.81 MB0 B
DekafProducer (Fire-and-Forget)18621725.22 MB1 B
DekafProducer (Fire-and-Forget)19221766.92 MB1 B
DekafProducer (Fire-and-Forget), 3 Brokers21370636.01 MB1 B
DekafProducer (Acks All)19700784.99 MB1 B
DekafProducer (Acks All)20800827.03 MB1 B
DekafProducer (Acks All), 3 Brokers16332696.68 MB1 B
DekafProducer (Fire-and-Forget, Idempotent)19900776.34 MB1 B
DekafProducer (Fire-and-Forget, Idempotent)20421788.35 MB1 B
DekafProducer (Fire-and-Forget, Idempotent), 3 Brokers11511531.86 MB1 B
DekafProducer → Consumer Round-Trip Steady State613202.81 GB153 B
DekafProducer (Transactional EOS), 3 Brokers10021442.81 MB455 B
Dekaf (3conn)Producer (Fire-and-Forget)274211002.89 MB1 B
Dekaf (3conn)Producer (Fire-and-Forget), 3 Brokers16020639.87 MB1 B
Dekaf (3conn)Producer (Fire-and-Forget, Idempotent)270211.07 GB1 B
Dekaf (3conn)Producer (Fire-and-Forget, Idempotent), 3 Brokers12333609.75 MB1 B
Dekaf (adaptive)Producer (Fire-and-Forget)19600885.08 MB1 B
Dekaf (adaptive)Producer (Fire-and-Forget), 3 Brokers14311692.78 MB1 B
Dekaf (adaptive)Producer (Fire-and-Forget, Idempotent)22600967.80 MB1 B
Dekaf (adaptive)Producer (Fire-and-Forget, Idempotent), 3 Brokers13400593.90 MB1 B

Confluent.Kafka uses native librdkafka; .NET GC allocation counters exclude unmanaged allocations.


About These Tests​

Stress tests measure sustained performance over extended periods against real Kafka brokers, with both clients paired on the same VM for a fair comparison.

Methodology — how these numbers are produced
  • Real Kafka: Tests run against actual Apache Kafka instances
  • CPU Isolation: Brokers are pinned to dedicated cores and the client under test to its own cores, so the client — not the broker — is the measured bottleneck
  • RAM-backed Broker Logs: Kafka log dirs are mounted on tmpfs so disk I/O never caps broker ingestion
  • Delivered Throughput: producer tables report broker-confirmed throughput, measured as the end-offset delta across all partitions — not the client-side append rate, which can run far ahead of what the broker ever accepts
  • Median Interval Throughput: table order and comparison ratios use median sampled client-side msg/s when available, which is less sensitive to short late-run stalls than the whole-run mean
  • Same-VM Pairing: comparable Dekaf and Confluent scenarios run sequentially inside one job/VM; 1-broker producer acceptance lanes run twice in opposite client orders and publish a geometric-mean aggregate, while other lanes alternate order by workflow run number
  • Backpressure Parity: both producers are bounded to the same 512 MB local buffer (Dekaf BufferMemory, librdkafka queue.buffering.max) and block on a full buffer, so neither client can absorb an unbounded backlog into RAM
  • Consumer Loop Replay: Consumer tests re-read a pre-seeded topic (seek to beginning when drained) instead of racing a live feeder, so the consumer itself is measured; table headings report the 16KB seed batch size because it amplifies per-batch costs relative to well-batched workloads
  • Delivery Latency Sampling: 1 in 1000 produced messages is awaited end-to-end to record true broker round-trip latency
  • Adaptive-Connections Row: the four paired fire-and-forget/idempotent producer lanes also run one Dekaf pass with the library default (adaptive connection scaling enabled, one connection to start), labelled Dekaf (adaptive); like the 3-connection control it is excluded from the headline comparison, which stays pinned to one connection to match Confluent
  • Round-Trip Correctness: Bounded sequenced payloads are consumed back and checked for corruption, wrong partitions, gaps, duplicates, and reordering
  • Round-Trip CPU Scope: CPU time covers both bulk production and consumer validation; it is not a producer-only metric
  • Round-Trip Alloc Scope: the GC/alloc window likewise spans production plus consume-side validation; values are deliberately consumed as byte[] on both clients for parity, so each consumed payload is materialized as a fresh array (~152 B at 128 B messages) — the expected allocation floor for this lane, not a leak
  • CPU Efficiency: CPU time per message differentiates client efficiency even at equal throughput
  • Noise-Aware Trends: each scenario's throughput, CPU per message and Dekaf delivery-latency p50/p95/p99 are compared with its last 10 matching runs using a median ± 2×MAD band; one adverse excursion warns and two consecutive regressions fail the workflow, and paired lanes fail only when the same-run Dekaf/Confluent ratio regressed too
  • Latency Product Bars: p95 within 3× the configured delivery-latency target and p50/p99 within 2× the same-run Confluent control are reported as product goals, not gates; a lane that misses a bar shows a warning until the trend band moves it
  • Parallel Execution: Each scenario runs in its own isolated environment
  • Both Clients: Direct comparison between Dekaf and Confluent.Kafka
  • Memory Monitoring: Tracks GC behavior and memory usage over time
  • Error Rates: Ensures stability under load