We ran pboss 1.8.0 against pm2 5.4.3 on Bun 1.3.14. Same server.ts, same Bun executable, same machine, same autocannon profile (10/100/500 connections, 60s, 5 repeats). Cold start of the whole manager stack every run, manager order alternating, CPU and RAM sampled across the entire process tree. The numbers below measure the cost of managing a Bun server, not Bun's raw HTTP performance.
Cluster mode: pm2 is "not supported", literally
Here's the headline, and it isn't a benchmark result. It's a capability table:
| Feature | pm2 | pboss |
|---|
| Cluster a Bun app | not supported | --instances N, workers share one SO_REUSEPORT port |
| 100 conns, 2 workers | — | 73,204 req/sec, 0.78 ms mean, 0 errors |
| Worker killed, port stays up | — | respawns in 81 ms, /health up 100% of kills |
| 50-restart storm, all workers back | — | 178 ms median, 0 failures, 0 orphans |
Why pm2 shows up as a blank column and not a losing one, straight from the report: pm2's cluster mode is node:cluster living inside its Node daemon. cluster.fork() always runs the daemon's own runtime and ignores --interpreter, and pm2 only enters cluster mode when the interpreter path contains "node". So pm2 start -i N --interpreter bun silently falls back to fork mode, and forcing exec_mode: "cluster_mode" runs your workers under Node instead of Bun. Rather than dress up fork-mode numbers in a cluster label, the benchmark records pm2 as not supported.
Meanwhile pboss runs a real process-based cluster for Bun: N workers of the same server.ts, kernel balancing connections across the shared port. At 500 connections it serves 66,007 req/sec mean with zero errors, and a SIGKILLed worker is replaced in 81 ms while the port never stops answering.
If you want HA for a Bun app today, the choice is pboss or hand-rolled.
Fork mode: closer than the Node report, and the trade-offs are clear
Fork mode at 100 connections, one managed process:
| Metric | pm2 | pboss |
|---|
| Mean req/sec | 73,892 | 72,139 (-2.4%) |
| Median req/sec | 74,126 | 72,798 (-1.8%) |
| RPS stdev | 2,935 | 1,124 (-62%) |
| latency (mean) | 0.70 ms | 0.84 ms (+0.14 ms) |
| p50 latency | 0.00 ms | 0.00 ms (tie) |
| p99 latency | 25.00 ms | 25.00 ms (tie) |
| CPU avg (tree) | 67.0% | 66.9% (-0.1%) |
| memory avg (tree) | 119.5 MB | 117.9 MB (-1.3%) |
| cold start | 389 ms | 338 ms (-13%) |
| errors / timeouts / non-2xx | 0 / 0 / 0 | 0 / 0 / 0 |
Read honestly: pm2 takes mean throughput by 2.4% and mean latency by 0.14 ms at 100 connections. Both are small, and note the tail is identical (p99 tied at 25 ms, p50 tied at sub-millisecond). What pboss takes back: RPS spread cut by 62%, meaning the numbers you get every second are much more predictable, plus lower CPU, lower memory, and a 13% faster cold start.
At 10 connections it flips: pboss wins median RPS by 2.6% and mean by 4.4% (pm2's spread is tighter there). At 500 connections pm2 keeps a 1.5 to 1.7% throughput edge while pboss keeps the steadier RPS (-55% stdev), lower CPU at every percentile, 2.5% less memory, and the same 13% startup advantage.
So in fork mode on Bun, pm2 is a legitimate opponent on raw throughput. That's the honest version. Now the part where the fight actually gets decided.
Startup, recovery, and storms
| Metric | pm2 | pboss |
|---|
| cold start, fork | 385 ms | 337 ms (-12.5%) |
| warm start, fork | 192 ms | 117 ms (-39%) |
| warm start, cluster | — | 158 ms |
| SIGKILL recovery, median | 66.5 ms | 66.0 ms |
| SIGKILL recovery, worst case | 74 ms | 66 ms (-11%) |
| 50-restart storm, fork | 255 ms | 129 ms (-49%) |
| storm memory growth, fork | +0.0 MB | -0.1 MB |
| storm, cluster (all workers) | — | 178 ms, 0 failures |
| idle daemon memory | 66.3 MB | 63.7 MB (-4%) |
Warm restarts are 39% faster under pboss, which you feel in every watch-mode save and every rolling deploy. Fork-mode crash recovery is roughly tied here (Bun apps come back fast either way), but the storm numbers separate: 50 restarts at 129 ms vs 255 ms, memory flat or slightly down for pboss, zero failures and zero orphans for both. And the cluster storm column exists only for pboss, because again, pm2 can't run it.
The honest list of pm2 wins
- Fork mode, 100 connections: mean throughput +2.4%, mean latency +0.14 ms.
- Fork mode, 500 connections: median and mean throughput +1.5 to 1.7%, p90 latency 7 ms vs 8 ms.
- Fork mode, 10 connections: tighter RPS spread.
- Crash recovery (fork) is a tie at median, 66.5 vs 66.0 ms.
That's it. Tiny margins on raw throughput in the mode where both tools do the same thing. Everywhere the tools diverge in capability (cluster), or where operations are on the line (startup, storms, stability, memory), pboss wins or is the only entry on the board.
Everything around it
Health checks, cron restarts, log rotation with gzip, web dashboard, Prometheus /metrics, namespaces, dependency-ordered startup, replace-first rolling reloads. Under Bun the manager runs on Bun.spawn, Bun.serve and Bun.file directly. Open source, GPLv3.
Don't take our word for it. Every number traces to a raw file in results/raw/, the load generator shared CPUs with the servers so compare the columns rather than quoting absolutes, and the benchmark script is three commands:
cd benchmarks/bun && npm install
bash scripts/benchmark.sh
Rerun it on your own hardware and tell us what changes.