Compare
Same input, up to five routes
Each scenario below is one prompt. It was given through up to five routes — raw BPMN
XML, compact JSON, a compact line notation, a @bpmnkit/core builder script
and a plan compiled by bpmnkit synth — and recorded between
2026-07-01 and 2026-07-03. Only the July recordings have the line notation, and
only recordings made since November 2026 have compact JSON and plan rows. The first row,
labelled no AI, is a builder script written by hand from the prompt alone.
These are recordings, not live runs. Each recording stores the model's output; the builder-script and compact-JSON outputs are re-executed against the current library, as on the homepage benchmark, so a replay says what the library does with that output today, not what the model would write now. Recordings made since November 2026 store the model id (none yet); 29 older runs do not, so they show no model and no cost.
The newest recording is 143 days old. Models change; treat these numbers as history.
Closeness (0–100) is how near an output is to the reference:
structure 25, configuration 45, annotations 15, layout 15 points. Because each model picks its
own ids and names, elements are matched by structure, not by name: each element is
described by its type (and event definition), its depth in the flow and how many flows enter
and leave it, and elements are paired greedily by smallest difference. Configuration compares
which kind of Zeebe setting an element carries (job type, I/O mapping, form, called
element), not its value, and layout compares positions after scaling each diagram to the
same box. The full definition is in
scripts/lib/closeness.mjs.
It measures agreement with one hand-written model, not quality, and the reference
scores 100 against itself by construction. A different but equally valid process scores
lower, so a gap to the reference is not by itself an error.
Where a number below says the no-AI reference is cheaper or faster, it is: it needs no tokens and builds in milliseconds. What it cannot show is what writing it cost the person who wrote it, and it was written for exactly these three prompts. Runs per route range from 1 to 5, so treat the medians as anecdotal. Failed runs are kept as rows. Tokens and time are medians over all runs of a route; closeness is the median over the runs that parse.
Cost is tokens × Anthropic list prices per million input and output
tokens from scripts/lib/model-prices.mjs
(table dated 2026-11-05). It is shown only for a run whose model is in that table and
that recorded an input/output token split, and is "—" otherwise. Recorded input tokens
include cache reads and writes, which this prices as plain input, so a cached prompt is
overstated.
Tests run the scenario's Camunda process-test file
(scripts/compare/references/<scenario>.test.json, the main happy path
from the prompt) on reebe-wasm, as bpmnkit test does. The test addresses the
hand-written reference's process id, element ids and job types, and the prompts do not
fix those, so a model's output fails at its first instruction for naming alone, whatever
its logic. Read "fail" as "does not match this reference's names", not as "wrong process".
Where the data build could not run the engine the column says "not run"; it is never
filled in by hand. Test files cannot publish a message and no DMN is deployed, so the
happy paths supply the decision outcome as a variable (loan approval, KYC) and stop at the
signature wait (quote-to-cash).
kyc
Prompt
Generate a KYC (Know Your Customer) onboarding BPMN process for Camunda 8. It should include: - Identity document upload and verification via a REST connector to an OCR service - Exclusive gateway on document quality: reject and loop back to re-upload (up to 2 retries) if verification fails - Sanctions and PEP (politically exposed person) screening via a REST connector - Risk-based gateway routing to standard due diligence or enhanced due diligence based on the screening result - User task for enhanced due diligence manual review by a compliance officer - DMN business rule task for final risk classification - Separate end events for approved, rejected, and escalated-to-compliance outcomes Output code only. No explanation. No markdown prose outside the code block.
All 6 runs
| Route | Run | Recorded | Model | Time | In | Out | Cost | Parses | Tests | DI | Lint err | Closeness |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LLM → builder script | kyc-2026-07-02 | 2026-07-02 | not recorded | 28.3 s | 10,599 | 2,273 | — | yes | not run | yes | 4 | 49.8 |
| LLM → builder script | kyc-2026-07-03 | 2026-07-03 | not recorded | 36.3 s | 10,652 | 3,023 | — | yes | not run | yes | 4 | 48.1 |
| LLM → compact notation | kyc-2026-07-02 | 2026-07-02 | not recorded | 16.2 s | 2,415 | 1,020 | — | yes | not run | yes | 6 | 44.5 |
| LLM → compact notation | kyc-2026-07-03 | 2026-07-03 | not recorded | 16.2 s | 2,415 | 1,032 | — | yes | not run | yes | 4 | 45.2 |
| LLM → raw XML | kyc-2026-07-02 | 2026-07-02 | not recorded | 115.6 s | 487 | 12,425 | — | yes | not run | yes | 5 | 53 |
| LLM → raw XML | kyc-2026-07-03 | 2026-07-03 | not recorded | 123.3 s | 487 | 12,092 | — | yes | not run | yes | 4 | 53.7 |
loan-approval
Prompt
Generate a Loan Approval BPMN process for Camunda 8. It should include: - Credit score check via REST connector - Exclusive gateway for pre-screening (reject below 580) - DMN business rule task for risk scoring - User task for manual underwriter review - Separate end events for approved and rejected outcomes Output code only. No explanation. No markdown prose outside the code block.
All 12 runs
| Route | Run | Recorded | Model | Time | In | Out | Cost | Parses | Tests | DI | Lint err | Closeness |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LLM → builder script | loan-approval-2026-07-01 | 2026-07-01 | not recorded | 19.7 s | — | — | — | yes | not run | yes | 3 | 38.8 |
| LLM → builder script | loan-approval-2026-07-01b | 2026-07-01 | not recorded | 17.7 s | 2 | 1,519 | — | yes | not run | yes | 3 | 38.8 |
| LLM → builder script | loan-approval-2026-07-01c | 2026-07-01 | not recorded | 17.3 s | 10,467 | 1,495 | — | yes | not run | yes | 3 | 39 |
| LLM → builder script | loan-approval-2026-07-02 | 2026-07-02 | not recorded | 17.4 s | 10,467 | 1,521 | — | yes | not run | yes | 3 | 38.8 |
| LLM → builder script | loan-approval-2026-07-03 | 2026-07-03 | not recorded | 19.0 s | 10,520 | 1,645 | — | yes | not run | yes | 3 | 39.2 |
| LLM → compact notation | loan-approval-2026-07-02 | 2026-07-02 | not recorded | 14.0 s | 2,283 | 894 | — | yes | not run | yes | 4 | 39.6 |
| LLM → compact notation | loan-approval-2026-07-03 | 2026-07-03 | not recorded | 11.6 s | 2,283 | 644 | — | yes | not run | yes | 2 | 43.5 |
| LLM → raw XML | loan-approval-2026-07-01 | 2026-07-01 | not recorded | 49.4 s | — | — | — | yes | not run | yes | 2 | 66.1 |
| LLM → raw XML | loan-approval-2026-07-01b | 2026-07-01 | not recorded | 46.8 s | 355 | 5,079 | — | yes | not run | yes | 2 | 65.9 |
| LLM → raw XML | loan-approval-2026-07-01c | 2026-07-01 | not recorded | 52.3 s | 355 | 5,441 | — | yes | not run | yes | 2 | 62.4 |
| LLM → raw XML | loan-approval-2026-07-02 | 2026-07-02 | not recorded | 48.4 s | 355 | 5,035 | — | yes | not run | yes | 2 | 63 |
| LLM → raw XML | loan-approval-2026-07-03 | 2026-07-03 | not recorded | 51.0 s | 355 | 5,167 | — | yes | not run | yes | 2 | 66 |
quote-to-cash
Prompt
Generate a Quote-to-Cash BPMN process for Camunda 8. It should include: - Quote/offer generation from a product catalog with tiered pricing - Exclusive gateway for discount approval: manager approval above one threshold, escalating to VP approval above a higher threshold - Contract generation and e-signature via a REST connector to an external e-signature service - Exclusive gateway routing standard orders directly to provisioning, or complex bundled orders through a dedicated multi-line provisioning subprocess - Multi-instance subprocess provisioning each ordered line item in parallel - Invoice generation triggered once provisioning completes - Payment processing via a REST connector to a payment gateway - Event-based gateway for payment outcome: paid immediately, or move to a dunning subprocess - Dunning/cash-collection subprocess with escalating reminder cycles (timer boundary events on each reminder) before escalating to a collections agency - Separate end events for: contract rejected, payment received, and written off after collections failure Output code only. No explanation. No markdown prose outside the code block.
3 of the 5 builder-script runs below failed when recorded. Re-running those scripts against @bpmnkit/core 1.6.1 compiles 3 of the 3.
All 11 runs
| Route | Run | Recorded | Model | Time | In | Out | Cost | Parses | Tests | DI | Lint err | Closeness |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LLM → builder script | quote-to-cash-2026-07-01 | 2026-07-01 | not recorded | 83.1 s | 10,715 | 7,415 | — | no | not run | — | — | failed: tsx exited with code 1 |
| LLM → builder script | quote-to-cash-2026-07-02 | 2026-07-02 | not recorded | 190.0 s | 10,715 | 17,649 | — | no | not run | — | — | failed: tsx exited with code 1 |
| LLM → builder script | quote-to-cash-2026-07-02b | 2026-07-02 | not recorded | 131.0 s | 10,715 | 11,793 | — | no | not run | — | — | failed: tsx exited with code 1 |
| LLM → builder script | quote-to-cash-2026-07-02c | 2026-07-02 | not recorded | 113.9 s | 10,715 | 10,401 | — | yes | not run | yes | 8 | 55.2 |
| LLM → builder script | quote-to-cash-2026-07-03 | 2026-07-03 | not recorded | 200.2 s | 10,768 | 17,426 | — | yes | not run | yes | 10 | 53.3 |
| LLM → compact notation | quote-to-cash-2026-07-03 | 2026-07-03 | not recorded | 67.9 s | 2,531 | 6,006 | — | yes | not run | yes | 4 | 61.3 |
| LLM → raw XML | quote-to-cash-2026-07-01 | 2026-07-01 | not recorded | 210.8 s | 603 | 24,174 | — | yes | not run | no | 3 | 58 |
| LLM → raw XML | quote-to-cash-2026-07-02 | 2026-07-02 | not recorded | 364.2 s | 603 | 37,609 | — | yes | not run | yes | 3 | 65.6 |
| LLM → raw XML | quote-to-cash-2026-07-02b | 2026-07-02 | not recorded | 307.3 s | 603 | 31,772 | — | yes | not run | yes | 3 | 64 |
| LLM → raw XML | quote-to-cash-2026-07-02c | 2026-07-02 | not recorded | 245.8 s | 603 | 26,103 | — | yes | not run | no | 3 | 58.4 |
| LLM → raw XML | quote-to-cash-2026-07-03 | 2026-07-03 | not recorded | 361.5 s | 603 | 33,826 | — | yes | not run | yes | 3 | 61.2 |