Skip to content

Benchmarks

Benchmarks only mean something when the application, hardware, and settings are the same for every runtime, and when you can see every round. This page reports two kinds of numbers, both measured, never estimated:

  1. the published comparison from PAM’s evidence workflow (PAM, FrankenPHP, and OpenSwoole running the same Laravel fixture); and
  2. a local measurement of a fresh Laravel 13 application on PAM, made while writing these docs, which shows the order of magnitude on a laptop.

Treat both as snapshots. Re-measure on your own hardware with your own routes before planning capacity.

Measured on August 25, 2026 on GitHub-hosted runners (4 vCPU AMD EPYC 7763), one application worker, 128 connections, five 15-second rounds per scenario after a 5-second warm-up. Values are medians. Full raw evidence, limitations, and workflow links are on the Performance & Benchmarks page.

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

Every scenario had zero errors. PAM used embedded PHP 8.5.9; the pinned FrankenPHP and OpenSwoole images used PHP 8.4.24, so this is not a same-PHP-version comparison.

The opt-in edge response cache served 74,620.54 req/s at 2.84 ms p99 in the same run. It skips Laravel entirely, so it is reported separately and must not be compared with dynamic requests.

A 30-minute soak of PAM 2.1.0 (four workers, 256 connections) served 3,680.25 req/s with zero errors and 20.23 MiB of RSS growth across the process tree.

A fresh pam init --template laravel application, measured on December 2, 2026:

Setting Value
Hardware Intel Core Ultra 9 185H laptop, 22 threads, shared with other workloads (load average ≈ 10)
Software PAM 2.2.27, embedded PHP 8.5.13 with OPcache, Laravel 13.45.0
Application APP_ENV=production, config and route cache, pushinbr/pam-laravel installed
Command pam start pam.php --workers 4
Route GET /api/ping ({"message":"pong"})
Load wrk -t4 -c64 -d15s --latency, pinned to separate CPUs, after a 5 s warm-up
Round Requests/s p50 p99
1 7,989.84 7.18 ms 17.38 ms
2 8,012.04 7.21 ms 16.83 ms
3 7,191.77 8.23 ms 18.17 ms

No socket errors or non-2xx responses. Each worker’s RSS was about 135 MB (resident, including memory shared with the other workers).

The comparison lab lives in the PAM repository under benchmarks/octane:

Terminal window
PAM_BENCH_ROUNDS=5 PAM_BENCH_DURATION=15s benchmarks/octane/run.sh

It runs the same Laravel fixture on PAM, FrankenPHP, and OpenSwoole with images pinned by digest, rotates scenario order between rounds, and writes raw wrk output, resource samples, a report, and a SHA-256 evidence manifest to benchmarks/octane/results. Verify the manifest before quoting results:

Terminal window
php benchmarks/octane/evidence-manifest.php benchmarks/octane/results 1 --verify

The worker-count matrix and soak:

Terminal window
PAM_BENCH_ROUNDS=5 PAM_BENCH_DURATION=30s PAM_BENCH_WORKER_MATRIX="1 4 8" benchmarks/octane/matrix.sh
PAM_SOAK_DURATION=30m benchmarks/octane/soak.sh
Terminal window
APP_ENV=production pam artisan optimize
pam start pam.php --workers "$(nproc)" --admin-address 127.0.0.1:3010 &
wrk -t2 -c32 -d10s http://127.0.0.1:3000/api/your-route # warm-up
wrk -t4 -c64 -d30s --latency http://127.0.0.1:3000/api/your-route # repeat 3×

Rules for a fair result:

  • same machine, Laravel version, composer.lock, .env, and response bytes for every runtime you compare;
  • production settings: no Xdebug, APP_DEBUG=false, cached config;
  • the same number of PHP workers and CPUs;
  • load generator on separate CPUs;
  • at least three rounds, reporting p50, p99, and errors, not only requests per second; and
  • your real routes, with the real database.