scripts/bench-campfire — workers=1, c=16, 3×20s runs per cell after 20s warmup; the median of the 3 runs is reported (the run-to-run spread is in the stability section below). Quiet machine throughout. Full hardware, toolchain versions, and the exact invocation are in the environment appendix below.
rails serves campfire's message fragments from Redis (cached: true); rails-nocache renders them. The emitted tree has no fragment cache, so rails-nocache is the lane that compares renderers and rails is the lane that says what a deployment costs. Publish both or publish neither.
The deployed lanes are what each project would run on this box. rails is once-campfire AS ITS OWN DOCKERFILE RUNS IT: Thruster in front of Puma, (processor_count * 0.666).ceil workers x 5 threads from its own config/puma.rb, jemalloc preloaded, resque-pool alongside. ruby is the CRuby emit in the same Puma shape with the same allocator; spinel is the binary with its workers autodetected.
The -1p lanes are the diagnostic: one process each, no proxy and no job runner. They exist because a deployed number cannot say WHY it landed where it did — Puma's five threads share a GVL where the binary's workers do not, so these rows separate "their runtime is slower" from "we gave them fewer cores".
Known omissions, stated rather than discovered: the WebSocket phase's rails lane runs Puma with campfire's worker count and its allocator but WITHOUT Thruster and resque-pool, and no lane terminates TLS.
spinel runs the same Roundhouse-emitted framework as the CRuby ruby cell, but compiled by Spinel behind its thread-per-connection server (a green thread per connection on the runtime's autodetected OS worker count) rather than CRuby + Puma — so the ruby → spinel gap is a runtime swap, not a framework or source change.
Each endpoint is its own chart. Bars are log-scaled; raw req/sec is shown at the right.
Same Ruby interpreter, same YJIT, same Puma — the only variable is whether the framework runtime is Rails or Roundhouse-emitted. The multiplier above each pair is the lift from the lowerer pipeline.
Throughput normalized by memory footprint — req/sec divided by RSS in GB. This reorders the raw throughput charts above: targets with small working sets rise and high-RSS targets fall. Bars are log-scaled. How much the metric matters depends on the deployment shape — most on metered or serverless surfaces, least on bare metal with memory headroom.
Max PSS observed across all endpoints, per target, sorted low to high.
PSS, not a sum of RSS: adding RSS across a process tree counts every shared page once per process, which reads high for a clustered lane and changes nothing for a single-process one. PSS divides each shared page among its sharers.
Latencies are at c=16 concurrent connections; treat p50 as the median per-connection wait and p99 as the tail. Rows are ordered by measured median p50 across endpoints, fastest first.
| target | /rooms/1 | /rooms/1/messages | ||
|---|---|---|---|---|
| p50 | p99 | p50 | p99 | |
| rails | 40.3 | 152.3 | 20.7 | 71.7 |
| ruby | 88.2 | 186.6 | 86.7 | 197.2 |
| spinel | 227.9 | 527.9 | 242.6 | 536.3 |
| rails-1p | 379.8 | 470.6 | 190.9 | 208.0 |
| rails-nocache | 604.7 | 930.7 | 642.5 | 934.5 |
| spinel-1p | 476.8 | 656.6 | 644.5 | 836.2 |
| ruby-1p | 651.5 | 1130.0 | 676.4 | 1210.0 |
| rails-nocache-1p | 1280.0 | 1970.0 | 1470.0 | 1880.0 |
All values in milliseconds. Lower is better.
Time from exec to a server that answers, and to a signed-in /rooms/1 that comes back 200. Median of 3 boots per lane, all on the shape named in the row. The room page is the number that matters: it contains the first render, and on a fragment-cached lane a restart keeps the Redis its own Procfile runs in a separate process, so this is a warm-cache restart rather than a cold deployment.
| target | answers (ms) | room page (ms) |
|---|---|---|
| spinel-1p | 327 | 364 |
| spinel | 327 | 380 |
| ruby-1p | 749 | 1031 |
| ruby | 1007 | 1318 |
| rails-1p | 3155 | 3553 |
| rails | 4086 | 4524 |
| rails-nocache | 4099 | 5022 |
| rails-nocache-1p | 3148 | 122667 (3 boots never rendered) |
Milliseconds. Lower is better. A deployed Rails lane boots a proxy, a Puma master and one worker per (processor_count × 0.666).ceil; the binary boots one process.
Sockets held open, subscribed to a room, then idled and driven: each lane pinned to the same cores, one client, exact delivered/expected frame counts. The idle column is the cost of holding connections that are doing nothing, which is what a chat deployment does most of the time. Read the fan-out latency against the per-room column — one message costs one write per subscriber in its room, so a room of 200 and a room of 50 are different workloads at the same socket count.
| target | sockets | per room | connect storm | idle (cores) | PSS (MB) | fan-out p50 / p99 | delivering (cores) | frames |
|---|---|---|---|---|---|---|---|---|
| spinel | 1,000 | 50 | 6.0 s | 0.010 | 129 | 33 / 85 ms | 0.063 | 1,500/1,500 |
| rails | 1,000 | 50 | 2.3 s | 0.010 | 568 | 31 / 216 ms | 0.174 | 1,500/1,500 |
The driver is one thread reading every socket; its longest single reading pass in this run was 58 ms. A fan-out p99 near that number is the client's backlog rather than the server's fan-out.
Memory is PSS where the lane is multi-process, RSS otherwise. Lower is better in every column except frames, which must be exact.
One authenticated GET per lane per endpoint, captured before any load. Equal tag counts are what makes the throughput numbers above a comparison rather than two measurements.
| lane | endpoint | status | tags | bytes |
|---|---|---|---|---|
| rails | /rooms/1 | 200 | 3,963 | 442,544 |
| rails | /rooms/1/messages | 200 | 3,698 | 409,027 |
| rails-nocache | /rooms/1 | 200 | 3,963 | 442,544 |
| rails-nocache | /rooms/1/messages | 200 | 3,698 | 409,027 |
| ruby | /rooms/1 | 200 | 3,963 | 423,409 |
| ruby | /rooms/1/messages | 200 | 3,698 | 392,267 |
| spinel | /rooms/1 | 200 | 3,963 | 423,409 |
| spinel | /rooms/1/messages | 200 | 3,698 | 392,267 |
| rails-1p | /rooms/1 | 200 | 3,963 | 442,544 |
| rails-1p | /rooms/1/messages | 200 | 3,698 | 409,027 |
| rails-nocache-1p | /rooms/1 | 200 | 3,963 | 442,544 |
| rails-nocache-1p | /rooms/1/messages | 200 | 3,698 | 409,027 |
| ruby-1p | /rooms/1 | 200 | 3,963 | 423,409 |
| ruby-1p | /rooms/1/messages | 200 | 3,698 | 392,267 |
| spinel-1p | /rooms/1 | 200 | 3,963 | 423,409 |
| spinel-1p | /rooms/1/messages | 200 | 3,698 | 392,267 |
Each cell is timed 3 times and the charts above report the median run. This section reads per-run.json directly to show how far the individual runs strayed from it. Across all 16 cells the median run-to-run coefficient of variation in req/sec is 0.92% — the timed runs of a given cell agree to a fraction of a percent, so the reported medians aren't masking noise.
The 5 cells that vary by more than 3% are concentrated in the lowest-throughput cells, where a small absolute swing is a larger fraction of the rate; in 5 of them the first timed run is the slowest, consistent with residual warmup the fixed 20s warmup doesn't fully absorb:
| target | endpoint | run 1 | run 2 | run 3 | CV |
|---|---|---|---|---|---|
| rails-nocache | /rooms/1/messages | 22 | 29 | 31 | 14.4% |
| spinel | /rooms/1 | 50 | 56 | 58 | 5.7% |
| rails-nocache-1p | /rooms/1 | 5 | 5 | 5 | 4.3% |
| rails | /rooms/1 | 323 | 345 | 353 | 3.8% |
| rails-nocache | /rooms/1 | 25 | 28 | 26 | 3.8% |
req/sec per timed run; CV = standard deviation ÷ mean.
| target | endpoint | req/sec | p50 (ms) | p99 (ms) | PSS (MB) | req/sec/GB |
|---|---|---|---|---|---|---|
| spinel | /rooms/1 | 56 | 227.88 | 527.88 | 164 | 350 |
| spinel | /rooms/1/messages | 57 | 242.65 | 536.30 | 163 | 359 |
| spinel-1p | /rooms/1 | 36 | 476.75 | 656.64 | 74 | 508 |
| spinel-1p | /rooms/1/messages | 28 | 644.49 | 836.15 | 80 | 362 |
| ruby | /rooms/1 | 178 | 88.15 | 186.61 | 803 | 227 |
| ruby | /rooms/1/messages | 180 | 86.73 | 197.18 | 854 | 216 |
| ruby-1p | /rooms/1 | 24 | 651.51 | 1130.00 | 144 | 169 |
| ruby-1p | /rooms/1/messages | 23 | 676.35 | 1210.00 | 148 | 160 |
| rails | /rooms/1 | 345 | 40.30 | 152.34 | 1,924 | 183 |
| rails | /rooms/1/messages | 677 | 20.71 | 71.72 | 1,925 | 360 |
| rails-nocache | /rooms/1 | 26 | 604.72 | 930.70 | 1,693 | 16 |
| rails-nocache | /rooms/1/messages | 29 | 642.50 | 934.54 | 1,754 | 17 |
| rails-1p | /rooms/1 | 40 | 379.76 | 470.57 | 338 | 123 |
| rails-1p | /rooms/1/messages | 84 | 190.90 | 208.05 | 329 | 261 |
| rails-nocache-1p | /rooms/1 | 5 | 1280.00 | 1970.00 | 332 | 17 |
| rails-nocache-1p | /rooms/1/messages | 5 | 1470.00 | 1880.00 | 324 | 18 |
| hostname | showcase.party |
|---|---|
| OS | Ubuntu 24.04.4 LTS |
| kernel | Linux showcase.party 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux |
| board | ASRock B450 Pro4 R2.0 |
| CPU | AMD Ryzen 5 3600 6-Core Processor |
| topology | 6 cores / 12 threads |
| clock | governor=schedutil, boost enabled, 3600 MHz max |
| memory | 64,228 MB |
| app | campfire |
|---|---|
| revision | 94a48aacb65a |
| Rails | 8.2.0.alpha (1a02651ac37f) |
| Ruby | 4.0.5 |
| served | production |
| seed | 50 users, 5 rooms, 100 messages/room |
| app server (rails lanes) | puma 7.2.1 |
| app server (emit lanes) | puma 8.0.1 |
Recorded at boot, not copied from intent: a lane that asked for jemalloc and did not get one says so here.
| rails | jemalloc=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2, resque-pool=pid 490722, thruster=front on :19100 -> puma :20100, workers=campfire's own formula (WEB_CONCURRENCY unset) |
|---|---|
| rails-1p | jemalloc=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2, workers=1, fragment-cache=1 |
| rails-nocache | jemalloc=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2, resque-pool=pid 502343, thruster=front on :19101 -> puma :20101, workers=campfire's own formula (WEB_CONCURRENCY unset) |
| rails-nocache-1p | jemalloc=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2, workers=1, fragment-cache=0 |
| ruby | jemalloc=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2, workers=8 |
| ruby-1p | jemalloc=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2, workers=1 |
| spinel | workers=autodetected |
| spinel-1p | workers=1 |
| cargo | cargo 1.95.0 (f2d3ce0bd 2026-03-21) |
|---|---|
| crystal | Crystal 1.20.2 [2482c62c1] (2026-05-15) |
| curl | curl 8.5.0 (x86_64-pc-linux-gnu) libcurl/8.5.0 OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 (+libidn2/2.3.7) libssh/0.10.6/openssl/zlib nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.10 |
| dotnet | 10.0.301 |
| go | go version go1.26.4 linux/amd64 |
| jruby | jruby 10.1.0.0 (4.0.0) 2026-04-20 32f988b78c OpenJDK 64-Bit Server VM 25.0.3+9-LTS on 25.0.3+9-LTS +indy +jit [x86_64-linux] |
| mise | 2026.5.15 linux-x64 (2026-05-23) |
| node | v26.3.0 |
| python3 | Python 3.14.6 |
| redis-server | Redis server v=7.0.15 sha=00000000:0 malloc=jemalloc-5.3.0 bits=64 build=e53ff17674aa6190 |
| ruby | ruby 4.0.5 (2026-05-20 revision 64336ffd0e) +PRISM [x86_64-linux] |
| rustc | rustc 1.95.0 (59807616e 2026-04-14) |
| shards | Shards 0.20.0 [b2b98ca] (2025-12-19) |
| spinel | spinel aff3815f8acf [cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0] |
| sqlite3 | 3.45.1 2024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257ccalt1 (64-bit) |
| uv | uv 0.11.22 (x86_64-unknown-linux-musl) |
| wrk | wrk debian/4.1.0-4build2 [epoll] Copyright (C) 2012 Will Glozer |
| command | scripts/bench-campfire --app /home/rubys/once-campfire --port 19100 --out bench/results/campfire/20260905-185806 rails rails-nocache ruby spinel rails-1p rails-nocache-1p ruby-1p spinel-1p |
|---|---|
| workers | 1 |
| concurrency | 16 |
| runs | 3 × 20s after 20s warmup |
| wrk threads | 2 |
| endpoints | /rooms/1 /rooms/1/messages |
| targets | rails, rails-nocache, ruby, spinel, rails-1p, rails-nocache-1p, ruby-1p, spinel-1p |
| commit | fccbe6a128d0315caffd0fab893e8c78b7d1846e |
|---|---|
| branch | main |
| subject | Three more jobs build a spinel tree and needed the allocator too |
| load average | 0.59 / 0.96 / 1.73 |
|---|---|
| uptime | 19:43:01 up 23:26, 4 users, load average: 0.59, 0.96, 1.73 |