Roundhouse benchmark results

Run bench · captured 2026-12-02T05:13:34Z · e7223d435272 · 50 cells × 3 runs · 5 endpoints × 10 of 19 requested targets
Artifacts: env.json · per-run.json · skipped.json · summary.json · summary.md
Methodology. AMD Ryzen 5 3600 6-Core Processor, 6c/12t, 3.6 GHz, boost disabled, governor=performance, 63 GB RAM, Ubuntu 24.04.5 LTS. Toolchains pinned via mise. Harness: scripts/bench — workers=1, c=64, 3×20s runs per cell after 20s warmup (truffleruby 120s — those lanes plateau later); the median of the 3 runs is reported (the run-to-run spread is in the stability section below). Quiet machine throughout. The managed-heap cells run under a fixed heap budget so their RSS is comparable to the other cells' working sets rather than the runtime's default share of host RAM: the JVM cell (jruby) via -Xmx512m=-Xms512m, and the TruffleRuby cell (truffleruby) via --vm.Xmx — 512 MB for the emitted tree, 1 GB for stock Rails, which runs out of a 512 MB heap under TruffleRuby within a minute of load. Full hardware, toolchain versions, and the exact invocation are in the environment appendix below.

These numbers measure one specific Rails reference app — not arbitrary Rails workloads. See #16 for the fixture-fragility caveats.

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.

Incomplete run. 10 of 19 requested targets produced numbers; 9 did not:

Every chart and table below is drawn from the targets that were measured; a target that failed to build is absent, not slow. Where a lane reached the run and then produced no numbers its cells are shown as no data, not as zero — an unmeasured cell means wrk found nothing serving, or found a server answering with errors (a cell with any non-2xx response is not a measurement of the endpoint — an error page is cheap to serve), which is a different claim from a runtime that was measured and is slow. Such lanes are left out of the derived charts (multipliers, RSS ranking) for the same reason.

1. Throughput across targets

Each endpoint is its own chart. Bars are log-scaled; raw req/sec is shown at the right.

/articles

101001,00010,000req/seccrystal2,730typescript1,616jruby1,172truffleruby1,016spinel753python659ruby439ruby-int275rails-int82rails72

/articles/1

101001,00010,000req/seccrystal3,335typescript1,757jruby1,251spinel913truffleruby875python820ruby549ruby-int278rails-int78rails75

/articles/new

101001,00010,000req/seccrystal5,680typescript2,505truffleruby2,234jruby1,802spinel1,240python1,205ruby746ruby-int339rails112rails-int100

/articles.json

101001,00010,000req/seccrystal4,173typescript1,940truffleruby1,659jruby1,391python912spinel896ruby570ruby-int404rails145rails-int116

/articles/1.json

1001,00010,000req/seccrystal7,268typescript2,643truffleruby2,421spinel2,062jruby1,526python802ruby631ruby-int572rails197rails-int183

2. Lowerer dividend (ruby vs rails)

Same Ruby interpreter, same YJIT, same Puma — the only variable is whether the framework runtime is Rails or Roundhouse-emitted. The multiplier under each pair is the lift from the lowerer pipeline. Bars are log-scaled, so the multiplier, not bar height, is the ratio.

101001,00043972/articles6.0×54975/articles/17.3×746112/articles/new6.6×570145/articles.json3.9×631197/articles/1.json3.2×rubyrails

3. YJIT contribution

Each pair compares a cell with YJIT (ruby, rails) against its interpreter-only variant (ruby-int, rails-int). The bars show how far YJIT moves each.

02004006008001,0004392757282/articles5492787578/articles/1746339112100/articles/new570404145116/articles.json631572197183/articles/1.jsonrubyruby-intrailsrails-int

4. Cost economics (req/sec per GB of RSS)

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.

/articles

1001,00010,000100,0001,000,000req/sec/GBcrystal123,350python8,235spinel7,038typescript5,433ruby2,800ruby-int1,989jruby1,341truffleruby1,341rails-int258rails210

/articles/1

1001,00010,000100,0001,000,000req/sec/GBcrystal161,538python10,233spinel8,242typescript5,559ruby3,240ruby-int1,869jruby1,231truffleruby1,119rails-int242rails212

/articles/new

1001,00010,000100,0001,000,000req/sec/GBcrystal286,028python15,027spinel11,337typescript7,945ruby4,214truffleruby2,827ruby-int2,185jruby1,723rails314rails-int304

/articles.json

1001,00010,000100,0001,000,000req/sec/GBcrystal226,371python11,381spinel8,360typescript6,848ruby3,236ruby-int2,615truffleruby2,086jruby1,285rails396rails-int349

/articles/1.json

1001,00010,000100,0001,000,000req/sec/GBcrystal389,588spinel19,638python10,004typescript8,638ruby-int3,544ruby3,507truffleruby3,043jruby1,408rails-int542rails524

5. HTML → JSON multiplier

Per-target lift going from /articles (HTML) to /articles.json (JSON). The asymmetry isn't JSON-escape vs HTML-escape — both paths concatenate and escape strings. What JSON skips is the layout chain (csrf_meta_tag, importmap, asset-manifest scan, content_for slots) and the per-row view helpers (link_to, button_to, dom_id, tag.*) that the HTML index template invokes for every record. The chart below shows the multiplier per target.

rails2.0×truffleruby1.6×crystal1.5×python1.4×ruby1.3×typescript1.2×spinel1.2×jruby1.2× 1×2×3×4×5×6×

6. Memory footprint (RSS)

Max RSS observed across all endpoints, per target, sorted low to high. The field spans more than two orders of magnitude. The managed-heap cells (the JVM and .NET targets) run under a fixed heap budget rather than an organically-grown working set — see the note below the chart.

crystal22 MBpython82 MBspinel113 MBruby-int165 MBruby184 MBtypescript323 MBrails-int346 MBrails384 MBtruffleruby815 MBjruby1,109 MB

The JVM cells run under a fixed -Xmx512m heap (the TruffleRuby cells under --vm.Xmx: 512 MB for the emit, 1 GB for stock Rails), so the heap can't grab a host-dependent share of RAM; the rest is metaspace and code-cache, bounded by the app's class count rather than the box. Read the JVM bars as a pinned budget, not an organically-grown working set like the other cells.

7. Latency (p50 / p99 at c=64)

Latencies are at c=64 concurrent connections; treat p50 as the median per-connection wait and p99 as the tail. Lanes are ordered by measured median p50 across endpoints, fastest first.

target/articles/articles/1/articles/new/articles.json/articles/1.json
p50p99p50p99p50p99p50p99p50p99
crystal28.675.122.258.612.028.318.147.89.320.8
typescript39.1370.536.1241.125.058.033.299.423.554.2
truffleruby57.3148.461.2201.125.1106.535.296.924.086.0
jruby52.591.049.386.833.969.344.385.539.583.2
spinel79.3335.365.0288.347.6274.167.6362.929.9168.9
python94.3140.080.1125.155.486.570.8111.580.0120.1
ruby132.5342.1111.9311.385.5232.3106.3287.492.6267.4
ruby-int226.6464.9212.5438.2186.7481.5152.8372.4118.6314.4
rails860.11330.0820.51330.0560.3942.3434.2791.2303.7655.4
rails-int760.11210.0774.51390.0603.0946.2527.5817.4333.5702.8

All values in milliseconds. Lower is better.

Run-to-run stability

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 50 cells the median run-to-run coefficient of variation in req/sec is 6.54% — the timed runs of a given cell agree to a fraction of a percent, so the reported medians aren't masking noise.

The 45 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 19 of them the first timed run is the slowest, consistent with residual warmup the fixed 20s warmup doesn't fully absorb:

targetendpointrun 1run 2run 3CV
jruby/articles3251,1721,20845.3%
ruby-int/articles/new33922644326.3%
rails/articles.json14523213725.2%
truffleruby/articles5761,0461,01624.4%
ruby/articles/1.json63156494723.4%
truffleruby/articles/17791,23887520.5%
typescript/articles/new3,1011,9382,50518.9%
ruby-int/articles/1.json58057237818.3%
spinel/articles.json1,23585689617.0%
ruby/articles/new92064174615.0%
rails-int/articles/1.json18315521713.7%
ruby/articles.json44557061413.2%
jruby/articles/1.json1,8471,5261,36612.6%
typescript/articles.json1,9561,4901,94012.0%
python/articles/1.json92469780211.5%
rails/articles68887211.4%
ruby-int/articles.json33240443210.7%
truffleruby/articles/1.json2,4212,4581,95710.0%
ruby-int/articles/13022782389.7%
ruby/articles4393614529.6%
rails/articles/17175867.9%
ruby-int/articles2752613107.3%
rails-int/articles.json1131161327.1%
crystal/articles/new5,2416,1775,6806.7%
ruby/articles/15095975496.5%
jruby/articles/new1,8021,6681,9316.0%
jruby/articles.json1,3711,5591,3915.8%
rails/articles/new112991135.8%
spinel/articles/new1,1531,2401,3235.6%
truffleruby/articles/new2,0272,3212,2345.6%
rails-int/articles7882895.4%
python/articles7226406595.2%
rails/articles/1.json1792021975.1%
crystal/articles.json3,7544,1734,1754.9%
rails-int/articles/17978714.7%
python/articles.json9559128534.6%
crystal/articles/1.json7,1877,2687,9024.3%
python/articles/new1,2521,1361,2054.0%
spinel/articles/1.json2,1691,9702,0623.9%
rails-int/articles/new1001091003.9%
typescript/articles/11,8671,7571,7053.8%
crystal/articles2,9382,7022,7303.8%
typescript/articles/1.json2,6172,6432,8343.6%
jruby/articles/11,2511,2141,3203.5%
python/articles/18568207873.5%

req/sec per timed run; CV = standard deviation ÷ mean.

Raw cell data (50 rows)
targetendpointreq/secp50 (ms)p99 (ms)RSS (MB)req/sec/GB
crystal/articles2,73028.5575.0922123,350
crystal/articles/13,33522.2258.5821161,538
crystal/articles/new5,68012.0128.3420286,028
crystal/articles.json4,17318.1347.8018226,371
crystal/articles/1.json7,2689.3020.8219389,588
spinel/articles75379.28335.261097,038
spinel/articles/191365.02288.341138,242
spinel/articles/new1,24047.64274.1111211,337
spinel/articles.json89667.63362.891098,360
spinel/articles/1.json2,06229.92168.9010719,638
typescript/articles1,61639.12370.483045,433
typescript/articles/11,75736.10241.133235,559
typescript/articles/new2,50524.9657.953227,945
typescript/articles.json1,94033.1699.402906,848
typescript/articles/1.json2,64323.5454.243138,638
python/articles65994.30139.96828,235
python/articles/182080.10125.088210,233
python/articles/new1,20555.4286.548215,027
python/articles.json91270.75111.538211,381
python/articles/1.json80279.98120.118210,004
ruby/articles439132.49342.101602,800
ruby/articles/1549111.92311.271733,240
ruby/articles/new74685.49232.261814,214
ruby/articles.json570106.29287.421803,236
ruby/articles/1.json63192.56267.421843,507
ruby-int/articles275226.63464.921411,989
ruby-int/articles/1278212.51438.231521,869
ruby-int/articles/new339186.74481.481592,185
ruby-int/articles.json404152.76372.351582,615
ruby-int/articles/1.json572118.56314.451653,544
jruby/articles1,17252.5491.018941,341
jruby/articles/11,25149.3086.781,0401,231
jruby/articles/new1,80233.9169.321,0711,723
jruby/articles.json1,39144.3285.541,1081,285
jruby/articles/1.json1,52639.5283.151,1091,408
truffleruby/articles1,01657.29148.397751,341
truffleruby/articles/187561.22201.088001,119
truffleruby/articles/new2,23425.14106.488092,827
truffleruby/articles.json1,65935.1596.938142,086
truffleruby/articles/1.json2,42123.9986.008153,043
rails/articles72860.091330.00355210
rails/articles/175820.501330.00363212
rails/articles/new112560.31942.34367314
rails/articles.json145434.17791.16374396
rails/articles/1.json197303.71655.37384524
rails-int/articles82760.131210.00325258
rails-int/articles/178774.521390.00332242
rails-int/articles/new100603.00946.22338304
rails-int/articles.json116527.46817.41340349
rails-int/articles/1.json183333.52702.83346542
Environment (captured 2026-12-02T05:13:34Z)

Host

hostnameshowcase.party
OSUbuntu 24.04.5 LTS
kernelLinux showcase.party 6.8.0-147-generic #147-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 24 11:33:16 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
boardASRock B450 Pro4 R2.0
CPUAMD Ryzen 5 3600 6-Core Processor
topology6 cores / 12 threads
clockgovernor=performance, boost disabled, 3600 MHz max
memory64,228 MB

Toolchains

cargocargo 1.98.1 (797e8a9bc 2026-08-05)
crystalCrystal 1.20.2 [2482c62c1] (2026-05-15)
curlcurl 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
dotnet10.0.301
gogo version go1.26.4 linux/amd64
jrubyjruby 10.1.1.0 (4.0.0) 2026-07-22 aaa95d57e1 OpenJDK 64-Bit Server VM 25.0.3+9-LTS on 25.0.3+9-LTS +indy +jit [x86_64-linux]
mise2026.5.15 linux-x64 (2026-05-23)
nodev26.3.0
python3Python 3.14.6
redis-serverRedis server v=7.0.15 sha=00000000:0 malloc=jemalloc-5.3.0 bits=64 build=d064f9f48c901a92
rubyruby 4.0.5 (2026-05-20 revision 64336ffd0e) +PRISM [x86_64-linux]
rustcrustc 1.98.1 (48a229cea 2026-09-01)
shardsShards 0.20.0 [b2b98ca] (2025-12-19)
spinelspinel 2026.11.29+1337 (13ec4862e) [gcc 13.3.0 (cc)]
sqlite33.45.1 2024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257ccalt1 (64-bit)
trufflerubytruffleruby 40.0.0 (2026-09-17), like ruby 4.0.2, Oracle GraalVM Native [x86_64-linux]
uvuv 0.11.22 (x86_64-unknown-linux-musl)
wrkwrk debian/4.1.0-4build2 [epoll] Copyright (C) 2012 Will Glozer

Harness

commandscripts/bench --port 19000 rails rails-int rails-jruby rails-truffleruby ruby ruby-int jruby truffleruby python spinel typescript elixir go csharp csharp-aot swift kotlin crystal rust
workers1
concurrency64
runs3 × 20s after 20s warmup
wrk threads2
endpoints/articles /articles/1 /articles/new /articles.json /articles/1.json
targetsrails, rails-int, rails-jruby, rails-truffleruby, ruby, ruby-int, jruby, truffleruby, python, spinel, typescript, elixir, go, csharp, csharp-aot, swift, kotlin, crystal, rust
not measuredrails-jruby, rails-truffleruby, elixir, go, csharp, csharp-aot, swift, kotlin, rust (requested but produced no measurements)

Source

commite7223d435272e473d47a0338c86ea52653327358
branchmain
subjectMerge pull request #2431 from roundhouse-rb/view-url-request-host

Conditions at start

load average41.13 / 43.4 / 46.29
uptime06:13:38 up 47 days, 17:58, 0 user, load average: 41.13, 43.40, 46.29

Generated 2026-12-02T12:40:24Z from summary.json.