Skip to content

Performance & Benchmarks

This page collects the performance evidence published with PAM: what was measured, on which hardware, with which method, and what the numbers do not prove. Every number here comes from the PAM repository’s benchmark harnesses (benchmarks/) or its changelog. None of them is a promise about your application: rerun the harness on your own CPU, kernel, extensions, code and database before you size a deployment.

The results are dated snapshots. Newer releases may be faster or slower; the changelog notes the version each number belongs to.

Laravel: PAM 2.1.0 vs FrankenPHP and OpenSwoole

Section titled “Laravel: PAM 2.1.0 vs FrankenPHP and OpenSwoole”

This page is a dated performance snapshot, not a timeless promise. It records what PAM 2.1.0 produced on GitHub-hosted runners on August 25, 2026, using source commit c9b09cfe.

The complete raw rounds, host metadata, runtime identities, logs, reports, and SHA-256 evidence manifest are attached to the public workflow runs:

Across the four equivalent dynamic Laravel scenarios, PAM delivered 11.3% to 15.3% more median throughput than FrankenPHP and 32.1% to 36.8% more than OpenSwoole, with zero recorded request errors. The opt-in PAM edge cache served 74,620.54 requests/second at 2.84 ms median p99.

The edge-cache result is deliberately reported separately: it avoids full Laravel execution and is not equivalent to an uncached dynamic request.

Each value is the median of five measured 15-second rounds after a 5-second warm-up per scenario. The load used 128 connections, four load threads, one application worker, two CPUs for the server, and two separate CPUs for wrk.

Scenario Runtime Median req/s Median p99 Errors
Uncached PAM 2.1.0 1,605.83 84.19 ms 0
Uncached FrankenPHP 1,443.25 104.36 ms 0
Uncached OpenSwoole 1,174.21 120.60 ms 0
Blade PAM 2.1.0 1,231.76 108.29 ms 0
Blade FrankenPHP 1,085.67 129.93 ms 0
Blade OpenSwoole 916.31 150.95 ms 0
SQLite PAM 2.1.0 1,242.56 106.46 ms 0
SQLite FrankenPHP 1,111.64 141.32 ms 0
SQLite OpenSwoole 940.38 145.57 ms 0
Large JSON PAM 2.1.0 1,508.98 89.59 ms 0
Large JSON FrankenPHP 1,308.18 109.31 ms 0
Large JSON OpenSwoole 1,104.51 125.20 ms 0

PAM’s throughput ratio against FrankenPHP was 1.113× uncached, 1.135× for Blade, 1.118× for SQLite, and 1.153× for large JSON. Against OpenSwoole it was 1.368×, 1.344×, 1.321×, and 1.366× respectively.

Runtime path Median req/s Median p99 Errors
PAM edge cache 74,620.54 2.84 ms 0
FrankenPHP full Laravel execution 1,249.12 113.72 ms 0
OpenSwoole full Laravel execution 1,029.33 133.64 ms 0

This result passed the repository’s 5× edge-cache gate. It shows the value of explicitly cacheable responses; it must not be presented as a general 59× or 72× runtime claim.

The soak ran PAM 2.1.0 with four workers, four load threads, and 256 connections for 30 minutes.

Measurement Result Budget
Throughput 3,680.25 req/s Informational
Request errors 0 0
Resource samples 1,432 —
Baseline RSS 493.98 MiB —
Final RSS 514.22 MiB —
RSS growth 20.23 MiB ≤ 64 MiB
Soak gate Passed Required

RSS covers the supervised runtime process tree on the runner; it is not the memory cost of a single idle worker.

The HTTP comparison ran on a four-vCPU GitHub-hosted Ubuntu runner backed by an AMD EPYC 7763 with approximately 16 GiB RAM. PAM used embedded PHP 8.5.9, OPcache, and JIT. The pinned FrankenPHP and OpenSwoole comparison images used PHP 8.4.24, also with OPcache and JIT.

The soak ran on another four-vCPU GitHub-hosted runner backed by an AMD EPYC 9V74 with approximately 16 GiB RAM. Cloud-runner results naturally contain host variance; use the raw rounds and relative MAD values rather than treating a single number as guaranteed capacity.

From a checkout of push-in/pam at the measured commit:

Terminal window
# Five-round PAM, FrankenPHP, and OpenSwoole comparison
PAM_EVIDENCE_SUITE_ID=1 benchmarks/octane/run.sh
# Thirty-minute PAM stability run
PAM_SOAK_DURATION=30m benchmarks/octane/soak.sh

The CI workflow also installs the pinned tools, builds the measured release binary, verifies the evidence manifest, and retains the result bundle:

Terminal window
gh workflow run evidence.yml --repo push-in/pam --ref main -f suite_id=1
gh workflow run evidence.yml --repo push-in/pam --ref main -f suite_id=3

Nimbus on PAM vs Laravel Octane on FrankenPHP

Section titled “Nimbus on PAM vs Laravel Octane on FrankenPHP”

These numbers come from the internal nimbus-bench harness and compare the same API written in Nimbus on PAM and in Laravel on Octane with FrankenPHP.

  • Same API in both frameworks: GET /ping, a paginated product list (20 per page, COUNT plus LIMIT/OFFSET), a product by ID, product creation, and GET /me with a bearer token checked against the database.
  • Local PostgreSQL with scram-sha-256 authentication; same database and data for both.
  • 16 workers per server. CPUs pinned with taskset: server 0–7, wrk 8–11, PostgreSQL 12–19.
  • wrk -t4 -c64 -d20s after a 5-second warm-up per endpoint; median of 3 rounds.
  • Hardware: a laptop with an Intel Core Ultra 9 185H, with server, load generator and database on the same machine.
  • Nimbus: PAM 2.2.21 with the Arcano ORM and the blocking PDO driver (the default).
  • Laravel: Octane on FrankenPHP v1.13.5 (worker mode), PHP 8.5.12, OPcache on, validate_timestamps=0, php artisan optimize. JIT off on both sides.
  • Zero errors in every round.
Endpoint Nimbus req/s Nimbus p50 / p99 Laravel req/s Laravel p50 / p99 Ratio
GET /ping 75,710 0.80 / 2.86 ms 7,440 8.55 / 19.35 ms 10.2×
GET /products?page=N 13,202 4.79 / 7.32 ms 3,021 21.03 / 26.26 ms 4.4×
GET /products/{id} 30,956 2.04 / 3.54 ms 5,548 11.43 / 16.63 ms 5.6×
GET /me (bearer) 30,106 2.09 / 3.55 ms 5,221 12.14 / 17.61 ms 5.8×

Memory in the same run: Nimbus 37.6 MB RSS per worker (601 MB for 16 workers); Laravel on FrankenPHP 28.1 MB per worker (449 MB total, one threaded process). Laravel uses less memory; Nimbus serves more requests per second.

How to read it:

  • /ping measures only the framework’s fixed cost per request, so it shows the largest gap.
  • With the database involved the gap narrows to 4–6×, because part of the time is PostgreSQL and the driver.
  • The paginated list is the slowest endpoint in both, because of COUNT.

The changelog records two further runs of the same harness with 16 workers against PostgreSQL. It does not restate the hardware for these runs.

Release Change Reported result
2.2.24 $_SERVER, headers and the response encoded in C; pooled Fiber stacks /ping 76k → 139k req/s, /products/{id} 41k → 59k, /me 42k → 62k, POST /products 31k → 46k, a numbered page 20k → 28k; 10.6× to 19× Laravel with FrankenPHP except the page (9.5×, bound by PostgreSQL)
2.2.25 HTTP/1 served on the PHP worker thread (PAM_IO_THREADS=0) Against Laravel with FrankenPHP: /ping 23.2×, /me 15.5×, /products/{id} 13.6×, POST /products 12.9×, a numbered page 10.0×

benchmarks/process-manager/run.sh kills a managed master with SIGKILL and measures the time until a different, ready master is observable. Each suite runs on a clean hosted Ubuntu 24.04 runner and binds every artifact into a SHA-256 manifest.

Suite What Result
6 PAM vs PM2 7.0.3, one PHP app, 10 SIGKILL rounds (commit d79b0ec) PAM 10/10 recovered, p50 167 ms, p95 169 ms; PM2 10/10, p50 138 ms, p95 146 ms
7 1, 4 and 16 workers, 10 rounds each (commit 5a74387) 30/30 recovered; total p50/p95 165/169 ms, 223/241 ms and 539/580 ms
8 16 workers, compatible vs isolated extension profile (commit 38e0781) p95 total 595 vs 373 ms, readiness 493 vs 252 ms, PHP engine 416 vs 60 ms

PAM restarts a master and its workers while PM2 restarts a single process, so the comparison is directional, not like-for-like. Daemon RSS is excluded from the comparison for the same reason. Suite 8 shows why isolating PHP extensions speeds up recovery.

To reproduce:

Terminal window
PAM_RECOVERY_ROUNDS=10 benchmarks/process-manager/run.sh
PAM_RECOVERY_MATRIX_ROUNDS=10 benchmarks/process-manager/worker-matrix.sh

The repository’s protocol (benchmarks/README.md) applies to any comparison:

  • Same machine, kernel, CPU governor and open-file limits for every runtime.
  • Same application, composer.lock, routes, .env and response bytes.
  • Production dependencies with an authoritative class map; no Xdebug, debug pages, access logs, tracing or profilers.
  • Same number of PHP workers, CPU affinity, HTTP version and TLS mode.
  • Warm up first, then record at least three rounds at several concurrency levels: requests per second, p50/p95/p99, errors, worker RSS, event-loop lag and CPU.

For a quick local check, pam benchmark sends a fixed number of requests and prints throughput and latency:

Terminal window
pam benchmark http://127.0.0.1:3000/health --requests 1000 --concurrency 32

Do not publish “faster than” conclusions without the raw commands, versions, hardware, configuration and every round.

For capacity planning, rerun on the intended production CPU, kernel, PHP extensions, application code, database, and concurrency. See the Laravel benchmark laboratory for the broader fairness contract and captured metrics.