Skip to main content

QuantumBPM vs Camunda 8: A Benchmark on the Same Hardware

· 14 min read
Richard Bízik
Founder of QuantumBPM

Camunda 8 is the engine teams most often compare QuantumBPM with, so we ran both on the same hardware, with the same load driver and Camunda's own reference process. This post covers what we ran, what came out, and why.

In short
  • 2 to 6 times the throughput on an 11-task chain. On one machine QuantumBPM completed 1.9 to 3.9 times as many jobs per second as Camunda 8.10.9 driven by our custom Go client, and 3.2 to 6.2 times as many as Camunda driven by its official Java client.
  • 3 to 5 times on Camunda's own dispute process, 2.7 to 5.2 times against our custom Go client and 3.6 to 4.5 times against the Java client in the high-availability setups.
  • A second machine costs QuantumBPM little. With one node on each of two machines, Zeebe lost 40 to 69% of its single-machine throughput. QuantumBPM changed by +5% to −15%.
  • Completed work is queryable at once. A finished instance shows in QuantumBPM's API after a median of 14 to 580 ms. Camunda's search API shows it once Elasticsearch has it, after 1.1 s or more.

In the post on leaving Temporal we compared QuantumBPM 2.0 with our own 1.x. The question we hear more often is how it compares with Camunda 8. We tried to answer it in a way Camunda's engineers would accept: Camunda's process files unchanged, Camunda's own load test settings where we could use them, a tuning sweep for Zeebe, and when our own Zeebe client turned out to have a problem, a rerun on Camunda's official client.

What we ran​

Hardware. One machine with an AMD Ryzen 9 7900X3D (12 cores), 61 GiB of memory and a NVMe drive that completes about 2,700 flushes per second. The system under test was pinned to 8 cores and their SMT siblings, 16 threads, and the load driver to the other 4 cores. A second machine on the same switch, an AMD Ryzen 9 5900X with a Samsung 970 EVO Plus, joined for the two-machine setups. Every run started from empty data directories with fsync on.

Versions. Camunda 8.10.9 with Elasticsearch 8.19. QuantumBPM 2.1 with PostgreSQL 18.

SetupCamunda 8.10.9QuantumBPM
Single node1 broker, no exporter1 backend and PostgreSQL
HA engine3 brokers, replication factor 3, no exporter2 backends, a PostgreSQL primary with a synchronous standby
HA platformthe HA engine plus the Elasticsearch exporter, Operate and Tasklistthe HA engine setup, whose UI and APIs read the same PostgreSQL
Two machinesone broker per machine, replication factor 2a backend on each machine, the primary on one and the synchronous standby on the other
Two machines, platformthe same plus the exporter and Elasticsearchthe two-machine setup

QuantumBPM needs no separate platform setup: history, search and the UI already read the database the engine writes. Its platform rows below repeat its engine numbers, and only Camunda's numbers and the ratios change between them.

Workloads.

  • 11-task chain: eleven service tasks in a row, once with a tiny payload and once with Camunda's 1.4 KB reducedPayload.json. 400, 1,600 and 3,200 instances in flight.
  • Camunda's dispute process: the realistic process from Camunda's load tests, with its refunding child process, its decision table and the 11 KB payload of 50 dispute positions. Each root instance runs 153 jobs, 51 messages, 50 call-activity children and one decision. 25, 100 and 400 roots in flight.

Camunda ran its files unchanged. Our copy differs in four places, each so that the process does what Zeebe does with the original, for example - instead of an empty cell in the decision table.

Method. The driver holds a fixed number of instances in flight. Each load step has a 30 s warmup and a 120 s measured window. After the last step the driver waits until the engine is idle and checks the engine's own counts: every instance completed, every job ran, no incidents. Every number is the mean of two runs, and the charts show each setup's best step. Jobs per second counts completed jobs, the unit Camunda calls tasks per second.

Two clients for Camunda. Zeebe ran twice:

  • Camunda's official Java client 8.10.9, set up like Camunda's own load tester: REST, job streaming, a 1.8 s job timeout, 100 HTTP connections per gateway, a 10 s request timeout and the load tester's job handler.
  • Our custom Go client: our load driver's own worker on Camunda's Go client library 8.5.25, with gRPC, job streaming, a 60 s job timeout and publishes retried on backpressure. Camunda deprecated its Go client with 8.6. We wrote our driver on it first, and we report its numbers too because Zeebe reached higher throughput with it.

QuantumBPM's workers use its REST API: they poll a batch of jobs and complete each with its own call, with a 60 s job lock.

Results​

Peak jobs per second for QuantumBPM, Camunda with its Java client and Camunda with our custom Go client, on the 11-task chain and on Camunda's dispute process, in five setups. QuantumBPM is ahead in every setup.Peak jobs per second for QuantumBPM, Camunda with its Java client and Camunda with our custom Go client, on the 11-task chain and on Camunda's dispute process, in five setups. QuantumBPM is ahead in every setup.
Best of three load steps, mean of two runs. † Our custom Go client left roots unfinished later in these runs. ‡ 21 roots did not finish in one of the two runs.

Peak jobs per second on one machine, and how many times as many QuantumBPM completed.

11-task chain

SetupQuantumBPMCamunda, Java clientCamunda, custom Go clientvs Javavs Go
Single node6,6741,0731,7176.2×3.9×
HA engine5,3669472,0495.7×2.6×
HA platform5,3661,1181,8584.8×2.9×

11-task chain with Camunda's 1.4 KB payload

SetupQuantumBPMCamunda, Java clientCamunda, custom Go clientvs Javavs Go
Single node5,1231,0531,7444.9×2.9×
HA engine3,7939422,0244.0×1.9×
HA platform3,7931,1831,7123.2×2.2×

Camunda's dispute process

SetupQuantumBPMCamunda, Java clientCamunda, custom Go clientvs Javavs Go
Single node1,97179 ‡378 †24.9×5.2×
HA engine1,8144005854.5×3.1×
HA platform1,814505666 †3.6×2.7×

† and ‡ mark the same runs as in the chart. The † peaks come from load steps before any roots were left unfinished. The 24.9× on a single node is an outlier: Zeebe on the Java client kept less than one core busy there, and we did not find out why.

Our custom Go client got up to twice the throughput out of Zeebe that the Java client did. We did not tune the Java client beyond the load tester's settings. One test shows what the connection pool alone does: with 1,000 connections instead of 100, a single-node chain step rose from 80 to 131 instances per second, but about 1,500 requests ran into the 10 s timeout and some instances were created twice.

Query latency. A completed instance shows in QuantumBPM's query API after a median of 14 to 580 ms, because history and search read the database the engine writes. Camunda's search API reads Elasticsearch, which gets the data from Zeebe's exporter. It took 1.1 to 1.7 s with our custom Go client. With the Java client it took 1.2 to 1.5 s at the lowest load and up to 6.9 s at the highest, where our probe shared the busy client with the whole load.

Memory. The HA setups held 3.5 to 7.2 GiB for QuantumBPM, 7.6 to 15 GiB for three Zeebe brokers and 12.5 to 19 GiB with Elasticsearch. Every JVM ran with its default heap size.

Why the gap​

QuantumBPM kept 10 to 12 of its 16 threads busy at its peaks, so the CPU was its limit. Zeebe on one node kept only 2.2 to 3.2 busy on the chain, with either client. Its limit was elsewhere.

Zeebe splits its work into partitions, and each partition writes its own log and commits an entry only once that log is flushed to disk. On one node Zeebe flushed 2,900 to 4,000 times per second, and each flush took 10 to 16 ms on average on a drive that completes a single flush in 0.36 ms. Many partitions flushing at once queue at the drive. More partitions spread the work but add flushes, which is why Zeebe's best partition count depended on the setup and even on the load.

QuantumBPM writes one PostgreSQL write-ahead log and commits in groups: commits that arrive while a flush is running share the next one. On the chain, one flush carried about 20 commits on a single node and 24 with the synchronous standby. Fewer and fuller flushes leave the CPU as the limit, which is where an engine should be.

Against Camunda's own sizing​

Camunda's Self-Managed sizing guide for 8.10 runs this dispute process at about one root instance and 100 tasks per second on three brokers with 3 vCPU each and three Elasticsearch nodes with 7 vCPU each, as a sustained reliability target. On our machine Zeebe with Elasticsearch completed 505 tasks per second on the Java client and 666 on our custom Go client. Zeebe had more to work with here than in Camunda's reference setup.

Two machines​

In the two-machine setups every commit has to reach the second machine. Zeebe ran one broker per machine with replication factor 2, so Raft's quorum is both brokers and every append waits for the other machine's flush. QuantumBPM's PostgreSQL primary waited for the synchronous standby on the other machine to confirm each flush. The machines were connected by 1 GbE with 0.06 to 0.4 ms ping, and the configurations were the single-machine ones.

Peak jobs per second, and the change against the same engine's single-machine HA setup.

Two machines

WorkloadQuantumBPMCamunda, Java clientCamunda, custom Go client
11-task chain5,613 (+5%)458 (−52%)785 (−62%)
Chain, 1.4 KB payload3,473 (−8%)464 (−51%)768 (−62%)
Dispute process1,533 (−15%)129 (−68%)179 † (−69%)

Two machines, platform

WorkloadQuantumBPMCamunda, Java clientCamunda, custom Go client
11-task chain5,613 (+5%)666 (−40%)847 (−54%)
Chain, 1.4 KB payload3,473 (−8%)634 (−46%)908 (−47%)
Dispute process1,533 (−15%)205 (−59%)287 † (−57%)

Zeebe's flushes fell to 550 to 840 per second across both brokers, and at 400 instances in flight each broker used 0.5 to 1.1 cores. Group commit absorbs the network round trip the way it absorbs the disk flush: one confirmation from the standby covers every commit in the group.

What it took to get Zeebe there​

Most of the time this benchmark took went into Zeebe, not into QuantumBPM.

  • Partitions and threads. We swept partition counts from 3 to 256 and CPU and IO thread counts per setup, at two load levels, because Zeebe's best partition count changes with load. One broker refused to start with 256 partitions for lack of RocksDB memory. The setup with Elasticsearch needed its own sweep, since the exporter moves the best value. The picks were 128 partitions on one node, 12 for the HA engine and 6 with Elasticsearch.
  • A repeated sweep. The first sweep capped Zeebe near 165 instances in flight, because our driver started instances from a fixed pool of goroutines and Zeebe's slower creates used them all up. We fixed the driver and swept again.
  • Stranded roots. With our custom Go client, roots stopped finishing in 8 of 12 dispute process runs. Finding the cause took two additional runs, and it was in the client library, not in Zeebe.
  • A second client. We moved the Zeebe side to Camunda's official Java client with the load tester's settings and ran every Zeebe benchmark again. Its default connection pool then limited a single-node chain step to 80 instances per second where Zeebe reached about 131 with a larger pool. We kept the default, as Camunda's load tester does.

QuantumBPM needed one setting per setup: 8 or 32 step workers.

Machine timeCamundaQuantumBPM
Tuning21 runs, 0.8 h4 runs, 0.1 h
Benchmark30 runs, 5.6 h18 runs, 2.4 h
Diagnosis8 runs, 1.1 hnone

Counting the runs behind the Java client numbers, not the earlier runs on our custom Go client or runs we discarded. On top of the machine time, setting up, tuning and diagnosing Zeebe took about 3 h 50 min of our working time.

Caveats​

  • We make QuantumBPM, so this is a vendor benchmark. We kept the raw results of every run and are happy to walk anyone through the method.
  • Three setups share one machine, so their replicas share one drive and talk over loopback. The two-machine setups exist for that reason.
  • Both drives are NVMe.
  • Camunda ran without authentication. QuantumBPM validated an OIDC token on every request.
  • Elasticsearch ran as a single node without replicas.
  • Neither Zeebe client measures the engine alone. Our custom Go client is on a deprecated library that left roots unfinished under load. The Java client ran with the load tester's connection pool, which limited at least one setup.
  • All QuantumBPM runs came first, then the Zeebe runs, not interleaved.

What it means​

The engines spend their effort in different places. Zeebe's design spreads work over partitions that each keep their own durable log, which scales out across brokers but pays for every flush, and pays again when replication crosses machines. QuantumBPM keeps one transactional database and lets PostgreSQL batch the flushes, so on the same hardware it does more work per core and loses little when a standby sits on another machine.

Throughput is one criterion among several. Camunda 8 has a large ecosystem, and many teams already run it. If you are weighing the two, the hardware a given process volume needs, and how many components you run, are where the difference shows. Scaling the engine explains how QuantumBPM grows with replicas and shards.

If you want to repeat this benchmark or go through the details, reach us at support@quantumbpm.com.

Frequently Asked Questions​

Is QuantumBPM faster than Camunda 8?

In our benchmark on the same hardware, yes. On one machine QuantumBPM completed 1.9 to 6.2 times as many jobs per second as Camunda 8.10.9 on an 11-task chain and 2.7 to 25 times on Camunda's own dispute process, depending on the setup and on the client that drove Zeebe. Across two machines the gap grew, because replication cost Zeebe 40 to 69% of its throughput and QuantumBPM at most 15%.

Why did you run Camunda with two clients?

Our load driver first used Camunda's Go client library 8.5.25, which Camunda deprecated with 8.6 and which stops polling under load. We reran every Zeebe benchmark on Camunda's official Java client with the settings of Camunda's load tester. Zeebe reached higher throughput with our custom Go client, so we report both.

Was Camunda tuned for the benchmark?

Yes. Zeebe got a sweep of partition and thread counts for every setup at two load levels, and ran Camunda's process files unchanged. QuantumBPM got one setting per setup, the number of step workers.

Why does a second machine cost Zeebe more than QuantumBPM?

With one broker per machine and replication factor 2, every Zeebe partition waits for the other machine to flush each entry. QuantumBPM's PostgreSQL primary also waits for its standby on the other machine, but commits in groups, so one confirmation covers many commits.

Which versions were tested?

Camunda 8.10.9 with Elasticsearch 8.19, and QuantumBPM 2.1 on PostgreSQL 18.