Skip to content

Benchmarks ​

Measured on an Apple M1 Pro (10 cores, 16 GB), macOS, on 2026-03-11. Engine numbers use Criterion.rs; HTTP numbers use hey for 10 seconds per run, with the server in release mode and --log-level error. The test rule is a decision with four branches (score >= 90 / 70 / 50 / default) and the input {"score": 75}.

Your numbers will differ with hardware and rules. Run them yourself with cargo bench -p ordo-core.

Engine ​

WhatTime
Rule with 2 steps (decision, terminal)~361 ns
Rule with 4 branches~573 ns
Same rule, compiled .ordo binary~553 ns
One comparison, age > 18~40 ns
age > 18 && status == "active"~80 ns
score * 0.6 + bonus * 0.4~67 ns
Numeric expression after JIT~8 ns
Parsing an expression (once, at load)1 to 2 µs
Batch of 1000 executions~2.7 million per second

The same 4-branch rule in other Rust engines, same machine:

EngineTime per run
Ordo (bytecode VM)573 ns
Rhai (AST interpreter)728 ns
Zen Engine / GoRules4,200 ns
Plain Rust if/else, for reference3.5 ns

HTTP server ​

One instance, POST /api/v1/execute/:name:

Concurrent requestsRequests/sp50p99
114,6340.06 ms0.10 ms
1047,9600.19 ms0.40 ms
5059,4400.76 ms2.90 ms
20062,5112.78 ms9.90 ms
50060,5776.60 ms29.2 ms

Throughput levels off around 60,000 requests per second. Memory was 24.6 MB idle and 46.2 MB at 200 concurrent requests.

Batch execution, 50 concurrent requests:

Inputs per requestRequests/sRules run/s
1053,018530,180
10022,0492,204,900
5006,1283,064,000

A writer and a reader synced through NATS each serve about the same as a single instance. On the same machine, together they reached 83,082 requests per second.

Other engines behind HTTP, 50 concurrent requests:

EngineRequests/sp99
Go net/http with the logic hard-coded, for reference70,1342.30 ms
Ordo58,3743.40 ms
OPA (Go)30,3988.50 ms
json-rules-engine (Node.js)17,2056.10 ms
Grule (Go)6,54716.2 ms

Over HTTP, most of the time per request is the HTTP layer, not the rule. Ordo also does more per request than a bare handler: rule lookup, tenant and role checks, audit sampling and timing.

Released under the MIT License.