Ablauf

Performance Benchmarks

Compare Ablauf workflow performance against native Cloudflare Workflows with a fair, repeatable benchmark endpoint.

Performance Benchmarks

Ablauf ships with a built-in benchmark endpoint that runs identical workloads on both engines side-by-side, so you can compare performance yourself.

Results

The following results were measured on a deployed Cloudflare Worker. Both engines executed the same 8-step workflow with identical CPU work per step, alternating execution order each round.

10 measured iterations, 4 warmup rounds discarded. Execution order alternates per round to eliminate ordering bias.

End-to-End Completion

Time from workflow creation to completion (lower is better).

EngineMeanp50p95MinMax
Ablauf460ms453ms503ms424ms504ms
Cloudflare Workflows10,254ms5,544ms23,514ms2,898ms23,980ms

Ablauf completes workflows in 4.5% of the time it takes native Cloudflare Workflows — roughly 22x faster.

Startup Latency

Time from creation request to the first step starting execution.

EngineMeanp50p95MinMax
Ablauf332ms328ms369ms293ms370ms
Cloudflare Workflows9,742ms4,688ms23,199ms2,510ms23,735ms

Ablauf starts executing steps in 3.4% of the time — roughly 29x faster startup.

Throughput

Steps executed per second (higher is better).

EngineMeanp50p95MinMax
Ablauf17.4 steps/s17.7 steps/s18.7 steps/s15.9 steps/s18.9 steps/s
Cloudflare Workflows1.35 steps/s1.45 steps/s2.51 steps/s0.33 steps/s2.76 steps/s

Ablauf sustains 13x higher throughput with significantly lower variance (stddev 0.96 vs 0.77).

Per-Step Orchestration Overhead

Cloudflare Workflows adds measurable orchestration overhead between steps. Ablauf runs all steps in a single execution pass with zero inter-step overhead.

EngineAvg Step Overhead (mean)Avg Step Overhead (p50)Avg Step Overhead (p95)
Ablauf0ms0ms0ms
Cloudflare Workflows47.9ms35.9ms104.8ms

Variance

Ablauf shows tight, predictable latency. Cloudflare Workflows has high variance across runs.

MetricAblauf stddevCloudflare stddev
Completion25.9ms8,388.9ms
Startup23.7ms8,480.4ms
Throughput0.96 steps/s0.77 steps/s

These benchmarks reflect a specific workload (8 deterministic CPU-bound steps). Real-world results will vary based on step complexity, I/O patterns, and Worker resource usage. Run the benchmark endpoint on your own deployment for the most relevant numbers.

Benchmark Endpoint

The Worker exposes a benchmark endpoint that executes:

  • A custom Ablauf workflow (benchmark-ablauf)
  • A native Cloudflare Workflow (BenchmarkCloudflareWorkflow)

Both paths run the same payload, same number of steps, and same deterministic CPU work so the comparison is fair.

Usage

POST /benchmarks/workflows

This endpoint is token-protected and only runs when a BENCHMARK_TOKEN secret is configured.

npx wrangler secret put BENCHMARK_TOKEN

Then call the endpoint with x-benchmark-token.

curl -X POST https://your-worker.workers.dev/benchmarks/workflows \
  -H "content-type: application/json" \
  -H "x-benchmark-token: <your-token>" \
  -d '{
    "iterations": 10,
    "warmups": 4,
    "steps": 8,
    "workIterations": 5000,
    "pollIntervalMs": 10
  }'

Fairness Rules

  • Alternating run order per measured round (ablauf -> cloudflare, then cloudflare -> ablauf)
  • Warmup rounds are executed but discarded from final stats
  • Identical payload shape and work units for both implementations
  • Same polling interval and completion criteria

Metrics Returned

The response includes per-run and aggregated metrics for both engines:

  • createMs — latency for workflow instance creation call
  • startupMs — request-to-first-step-start latency
  • completionMs — end-to-end latency until workflow completes
  • runMs — workflow runtime measured inside the workflow implementation
  • totalStepWallMs — sum of wall-clock step durations
  • totalCallbackMs — sum of callback execution durations
  • totalOrchestrationMs — estimated scheduler/orchestration overhead (wall - callback)
  • throughputStepsPerSecond
  • perStep — p50/p95/min/max/mean/stddev for each step

The comparison object reports mean deltas and ratios for key metrics.

Notes

On this page