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.

Hand-written reference (no AI)

Tokens
0
Time
25 ms
Parses
yes
DI
complete
Lint errors
0
Cost
$0
Tests
not run
Closeness
100 (by definition)
Yes Approved Rejected Escalate PEP / sanctions hit / high risk No Yes, re-upload No, retries exhausted Uploadidentitydocument Verifydocument viaOCR service Screensanctionsand PEPlists Performstandard duediligence Classifyfinal risk Reviewenhanced duediligence Onboarding requested OCR failed Document quality OK? Screening failed Screening result? Classification? Customer approved Customer rejected Escalated to compliance Retries left?

LLM → raw XML

Tokens
487 in / 12,092 out
Time
115.6 s
Cost
—
Parses
2 / 2 runs
Tests
not run
DI
2 / 2 complete
Lint errors
0 / 2 with none
Closeness
53 median (53–53.7) — indicative, fewer than 3 runs
Diagram
kyc-2026-07-02
Passed Failed Retry(< 2) No retriesleft Highrisk Standard Approved Rejected Escalate UploadIdentityDocument OCR DocumentVerification IncrementRetryCounter Sanctions &PEPScreening Enhanced DueDiligenceReview Final RiskClassification KYCStarted DocumentqualityOK? Retriesleft? Risk-basedrouting Finaldecision Approved Rejected EscalatedtoCompliance

LLM → compact notation

Tokens
2,415 in / 1,020 out
Time
16.2 s
Cost
—
Parses
2 / 2 runs
Tests
not run
DI
2 / 2 complete
Lint errors
0 / 2 with none
Closeness
44.5 median (44.5–45.2) — indicative, fewer than 3 runs
Diagram
kyc-2026-07-02
UploadIdentityDocument VerifyDocument viaOCR Sanctions &PEPScreening Standard DueDiligence Enhanced DueDiligenceReview Final RiskClassification NotifyApproval NotifyRejection Onboarding Started Document Verified? Risk Level? ClassificationOutcome? Escalated toCompliance Customer Approved Customer Rejected

LLM → builder script

Tokens
10,599 in / 2,273 out
Time
28.3 s
Cost
—
Parses
2 / 2 runs
Tests
not run
DI
2 / 2 complete
Lint errors
0 / 2 with none
Closeness
48.1 median (48.1–49.8) — indicative, fewer than 3 runs
Diagram
kyc-2026-07-03
document-failed retries-exhausted enhanced-dd outcome-escalated outcome-rejected UploadIdentityDocument VerifyDocument(OCR) Sanctions &PEPScreening Standard DueDiligence Final RiskClassification ActivateCustomerAccount IncrementRetry Count Enhanced DueDiligenceReview Escalate toCompliance SendVerificationRejection Send KYCRejection Onboarding Started Document Verified? Due Diligence Level? Final Decision? Approved Retries Remaining? Escalated toCompliance Rejected — Document Rejected
All 6 runs
RouteRunRecordedModelTimeInOutCost ParsesTestsDILint errCloseness
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.

Hand-written reference (no AI)

Tokens
0
Time
3 ms
Parses
yes
DI
complete
Lint errors
0
Cost
$0
Tests
not run
Closeness
100 (by definition)
No Yes Yes No Check creditscore Score risk Reviewapplication Loan application received Credit check failed Credit score of at least 580? Loan rejected Approved by underwriter? Loan approved Loan rejected

LLM → raw XML

Tokens
355 in / 5,079 out
Time
49.4 s
Cost
—
Parses
5 / 5 runs
Tests
not run
DI
5 / 5 complete
Lint errors
0 / 5 with none
Closeness
65.9 median (62.4–66.1)
Diagram
loan-approval-2026-07-01b
Score< 580 Score >=580 Approved Rejected Credit ScoreCheck Risk Scoring ManualUnderwriterReview LoanRequestReceived Pre-Screening Approved? LoanApproved LoanRejected

LLM → compact notation

Tokens
2,283 in / 644 out
Time
11.6 s
Cost
—
Parses
2 / 2 runs
Tests
not run
DI
2 / 2 complete
Lint errors
0 / 2 with none
Closeness
39.6 median (39.6–43.5) — indicative, fewer than 3 runs
Diagram
loan-approval-2026-07-02
Fetch CreditScore SendRejectionLetter CalculateRisk Score GenerateLoan Offer UnderwriterReview SendRejectionLetter Send Offerto Applicant SendRejectionLetter Application Received Credit Score >= 580? Rejected - CreditScore Risk Tier? Underwriter Approved? Rejected - High Risk Loan Approved Rejected - Underwriter

LLM → builder script

Tokens
10,467 in / 1,519 out
Time
17.7 s
Cost
—
Parses
5 / 5 runs
Tests
not run
DI
5 / 5 complete
Lint errors
0 / 5 with none
Closeness
38.8 median (38.8–39.2)
Diagram
loan-approval-2026-07-02
rejected-prescreening low-risk high-risk uw-rejected Fetch CreditScore SendRejectionLetter CalculateRisk Score GenerateLoan Offer UnderwriterReview SendRejectionLetter Send Offerto Applicant SendRejectionLetter Application Received Credit Score ≥ 580? Rejected — CreditScore Risk Tier? Underwriter Approved? Rejected — High Risk Loan Approved Rejected — Underwriter
All 12 runs
RouteRunRecordedModelTimeInOutCost ParsesTestsDILint errCloseness
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.

Hand-written reference (no AI)

Tokens
0
Time
7 ms
Parses
yes
DI
complete
Lint errors
0
Cost
$0
Tests
not run
Closeness
100 (by definition)
Provision each line item Dunning and cash collection No 5-20% Above 20% No Yes Standard Complex bundle Paid Overdue Yes No Generatequote fromproductcatalog Managerapprovesdiscount Managerreviews andescalates VP approvesdiscount Generatecontract Sendcontract fore-signature Follow up onsignaturefailure Awaitsignatureoutcome Provisionorder Generateinvoice Chargecustomer viapaymentgateway Provisionline item Sendfriendlyreminder Awaitpayment(reminder 1) Send secondreminder Awaitpayment(reminder 2) Send finalnotice Awaitpayment(finalnotice) Hand over tocollectionsagency Awaitcollectionsoutcome Quote requested Discount above standard? Contract signed? Contract rejected Order type? Payment outcome Payment confirmed Payment received Payment term elapsed Debt collected? Payment received Written off after collections failure Line item received Line item provisioned Payment overdue Dunning closed

LLM → raw XML

Tokens
603 in / 31,772 out
Time
307.3 s
Cost
—
Parses
5 / 5 runs
Tests
not run
DI
3 / 5 complete
Lint errors
0 / 5 with none
Closeness
61.2 median (58–65.6)
Diagram
quote-to-cash-2026-07-03
Multi-line provisioning Dunning / cash collection Generatequote fromcatalog(tieredpricing) Managerdiscountapproval VP discountapproval Generatecontract Sendcontract fore-signature Provisionstandardorder Provisionline item Generateinvoice Processpayment(paymentgateway) Reminder 1 &awaitpayment Reminder 2 &awaitpayment Reminder 3 &awaitpayment Escalate tocollectionsagency Quoterequested Discountlevel? Contractsigned? Contractrejected Ordertype? Paymentoutcome Paidimmediately Paymentreceived Paymentoverdue 7d 7d 14d Collectionresult? Written off

LLM → compact notation

Tokens
2,531 in / 6,006 out
Time
67.9 s
Cost
—
Parses
1 / 1 runs
Tests
not run
DI
1 / 1 complete
Lint errors
0 / 1 with none
Closeness
61.3 median (61.3–61.3) — indicative, fewer than 3 runs
Diagram
quote-to-cash-2026-07-03
Multi-Line Provisioning Dunning / Cash Collection GenerateQuote fromCatalog GenerateContract RequestE-Signature ProvisionStandardOrder GenerateInvoice ProcessPayment ManagerDiscountApproval ProvisionLine Item Send FirstReminder AwaitPayment Send SecondReminder AwaitPayment Send FinalReminder AwaitPayment Escalate toCollectionsAgency VP DiscountApproval Quote Requested Discount Level? Discount Resolved Contract Signed? Contract Rejected Order Type? Provisioning Complete Payment Outcome Payment Confirmed Payment Received Start Provisioning Line Item Provisioned Payment Timeout Start Dunning Reminder 1 Timeout Payment Collected Reminder 2 Timeout Final Reminder Timeout CollectionsSuccessful? Collection Failed Cash Collected? Written Off

LLM → builder script

Tokens
10,715 in / 11,793 out
Time
131.0 s
Cost
—
Parses
2 / 5 runs
Tests
not run
DI
2 / 5 complete
Lint errors
0 / 5 with none
Closeness
53.3 median (53.3–55.2)
Diagram
quote-to-cash-2026-07-03
Provision Bundled Order Dunning & Cash Collection manager-approval vp-approval discount-approved discount-rejected bundled-order payment-overdue collected-during-dunning debt-recovered debt-written-off GenerateQuote fromCatalog GenerateContract SendContract forE-Signature ProvisionStandardOrder GenerateInvoice ChargePaymentGateway ManagerDiscountApproval ProvisionLine Item Send 1stReminder AwaitPayment (1) Escalate toCollectionsAgency VP DiscountApproval Opportunity Received Discount Level? Contract Signed? Order Type? Payment Outcome? Payment Confirmed Payment Received Discount Approved? Contract Rejected Line Item Line Provisioned Payment Window Elapsed Payment Overdue 7Days Payment Collected Payment Collected? Debt Recovered? Written Off —Collections Failed

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
RouteRunRecordedModelTimeInOutCost ParsesTestsDILint errCloseness
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