Timings below are still shown, and are still real measurements of what the code did — but what the code did was not what Rails does, so they do not measure the same work and must not be compared. This banner is generated from the run's own data and disappears by itself once every lane renders what Rails renders and every timed visit returns 200.
bench/lobsters/frozen-sequence.json) so every run — and the Rails baseline — walks the identical path. Both stacks serve from an in-memory SQLite seeded at boot (file:lobsters_bench?mode=memory&cache=shared), the shape the ruby-bench lobsters benchmark runs. Median of the timed iterations is reported.
The runtime × JIT matrix section re-runs the same frozen sequence once per interpreter × JIT lane — in-process, in-memory, single-threaded — so its rows differ only in the runtime under test.
Every lane runs ANALYZE once after seeding its in-memory copy (a departure from stock ruby-bench, whose fixture DB carries no sqlite_stat1): without planner statistics SQLite misplans the hottest-stories SELECT under /rss, /hottest, and /recent — a full-table walk plus sort instead of reading hotness_idx to the LIMIT, ~100× the query cost — and both stacks pay that same planner accident. Statistics restore the plan a production database would have; both lanes get identical stats, so the comparison is unchanged in kind and fairer in degree.
This measures one specific reference app (the ruby-bench lobsters fixture), not arbitrary Rails workloads. The Rails baseline runs the real Rails lobsters over the same sequence; the roundhouse cell serves the same routes from the Roundhouse-emitted framework.
3.69× faster than Rails — 133.6 ms/iter vs Rails' 493.2, both stacks CRuby with YJIT. The full field:
Every lane replays the same frozen sequence in-process, in-memory, single-threaded — no HTTP server, no load generator — so the only variable across rows is the interpreter × JIT under test (the ruby-bench lobsters-for-YJIT shape). Lower is better; whiskers span each lane's min–max.
| stack | JIT | ms/iter | min–max | CV | drift | iters | vs Rails |
|---|---|---|---|---|---|---|---|
| Roundhouse | AOT | 101.60 | 99.0–105.0 | 1.6% | +4.2% | 99 | 4.85× |
| Roundhouse | YJIT | 133.64 | 118.6–148.4 | 7.0% | +10.4% | 76 | 3.69× |
| Roundhouse | no JIT | 177.22 | 167.7–189.7 | 3.0% | -7.2% | 57 | 4.67× |
| Rails | YJIT | 493.18 | 481.2–516.4 | 1.6% | -1.0% | 21 | 1.00× |
| Rails | no JIT | 827.04 | 817.2–850.4 | 0.9% | -0.0% | 20 | 1.00× |
Drifting lanes: Roundhouse YJIT slowed 10.4% between the first and last quarter of its own timed iterations; Roundhouse no JIT sped up 7.2% between the first and last quarter of its own timed iterations. A drifting lane's median depends on how long the run was, so its ratio is not a stable number — read it as a range, not a point. Lanes that hold steady drift under 1%.
| lane | code region | iseqs compiled | invalidations | code GCs | compile time |
|---|---|---|---|---|---|
| Roundhouse YJIT | 3,187 KiB / 4,704 KiB | +5 | +1 | 0 | +19.9 ms |
Deltas across the timed iterations only — warmup is excluded, so a zero row means YJIT had finished its work before the clock started. Non-zero iseqs compiled means new code was still being generated while being measured; invalidations means compiled code was being thrown away and redone; a non-zero code GCs means the code region filled and YJIT reclaimed it, after which previously-compiled paths must be compiled again.
“vs Rails” is a speed ratio — Rails' ms/iter ÷ this row's, at the same JIT level — so 3× means three times faster. Memory is a separate section below. CV = per-lane standard deviation ÷ mean across the timed iterations.
Each column is one timed iteration, scaled within a tight band around the lane's spread; the dashed line is the median.
Lanes measured 2026-07-30T15:38:56Z · host showcase.party — one process per lane, JIT pinned per lane.
Where the overall 3.69× win comes from — each endpoint's median latency over every timed visit of the frozen sequence, per lane. Bars are log-scaled; the ratio at the right is Rails ÷ roundhouse (both CRuby +YJIT) (green = roundhouse faster). The chart draws rails, roundhouse, roundhouse AOT; the no-JIT lanes appear as extra columns in the table below.
A diagnostic breakdown, not a re-derivation: per-endpoint medians don't sum to the sequence median (GC and ordering don't decompose linearly), and the sub-millisecond rows sit near clock resolution — trust the ranking, not the third decimal.
| endpoint | rails | rails no-JIT | roundhouse | roundhouse no-JIT | AOT | ratio | visits/iter |
|---|---|---|---|---|---|---|---|
/threads | 12.82 | 22.48 | 3.13 | 4.88 | 0.60 | 4.10× | 3 |
/newest | 12.60 | 22.88 | 2.90 | 4.38 | 2.34 | 4.35× | 5 |
/threads/:username | 9.94 | 17.13 | 2.50 | 3.98 | 0.73 | 3.97× | 2 |
/hottest | 9.82 | 18.45 | 3.68 | 6.08 | 2.30 | 2.67× | 2 |
/rss | 9.38 | 14.21 | 4.54 | 5.70 | 2.61 | 2.07× | 4 |
/comments | 7.57 | 13.71 | 2.56 | 3.67 | 3.51 | 2.96× | 4 |
/s/:story_id | 5.59 | 9.99 | 1.02 | 1.64 | 0.83 | 5.45× | 15 |
/top?length=1w | 4.00 | 5.47 | 2.38 | 2.54 | 2.70 | 1.68× | 2 |
/top?length=1d | 3.95 | 5.40 | 2.36 | 2.53 | 2.68 | 1.67× | 4 |
/top?length=1y | 3.76 | 5.20 | 2.19 | 2.32 | 2.54 | 1.72× | 2 |
/saved | 3.36 | 5.99 | 0.38 | 0.60 | 0.26 | 8.88× | 5 |
/u/:username | 3.16 | 5.23 | 0.65 | 0.95 | 0.42 | 4.88× | 6 |
/settings | 2.86 | 4.88 | 0.23 | 0.36 | 1.06 | 12.24× | 3 |
/recent | 2.63 | 4.43 | 0.23 | 0.37 | 0.17 | 11.57× | 2 |
/u | 2.16 | 3.10 | 0.44 | 0.50 | 0.41 | 4.94× | 15 |
/replies/comments | 1.88 | 2.81 | 0.19 | 0.28 | 0.22 | 10.08× | 3 |
/replies/stories | 1.85 | 2.80 | 0.19 | 0.28 | 0.17 | 9.84× | 2 |
/upvoted/comments | 1.84 | 3.17 | 0.23 | 0.34 | 0.22 | 7.88× | 3 |
/active | 1.83 | 3.39 | 0.19 | 0.31 | 0.14 | 9.54× | 6 |
/hidden | 1.80 | 3.29 | 0.18 | 0.30 | 0.17 | 9.92× | 4 |
/upvoted/stories | 1.79 | 3.16 | 0.18 | 0.30 | 0.14 | 9.73× | 6 |
/replies/unread | 1.79 | 2.91 | 0.19 | 0.29 | 0.11 | 9.36× | 7 |
/replies | 1.78 | 2.75 | 0.22 | 0.33 | 0.22 | 7.91× | 3 |
/comments/:comment_id/reply | 1.68 | 2.84 | 0.27 | 0.41 | 0.31 | 6.20× | 5 |
/about | 1.10 | 1.89 | 0.20 | 0.31 | 0.48 | 5.35× | 1 |
All lane columns are median ms per visit; ratio = rails ÷ roundhouse (the +YJIT pair). The AOT column is the spinel-compiled binary — same emit, different runtime, and not at full content parity (see above).
Peak resident memory of each lane's replay process — lower is better. Because the lanes replay in-process, each one measures itself (VmHWM from /proc/self/status), so this is the whole stack: interpreter, framework, the in-memory fixture DB, and whatever the timed run retains on top.
The bar splits at the point the sequence starts. The solid segment is the baseline — everything loaded and seeded, before a single visit. The translucent segment is growth across the timed run. The two say different things: baseline is what the stack costs to stand up, growth is what serving retains.
| stack | JIT | baseline | peak | growth | vs Rails (memory) |
|---|---|---|---|---|---|
| Roundhouse | AOT | 51 MB | 72 MB | +21 MB | — |
| Roundhouse | no JIT | 85 MB | 102 MB | +17 MB | 3.00× |
| Roundhouse | YJIT | 87 MB | 122 MB | +36 MB | 2.81× |
| Rails | no JIT | 175 MB | 305 MB | +131 MB | 1.00× |
| Rails | YJIT | 183 MB | 344 MB | +161 MB | 1.00× |
“vs Rails (memory)” is peak RSS ÷ peak RSS at the same JIT level — not the speed ratio in the matrix table above; the two differ. Baseline is sampled after the in-memory fixture DB is seeded, and it is not a common floor across lanes — each stack loads its own framework, so subtracting one lane's baseline from another's peak is meaningless.
Incomplete coverage: 1 route(s) fail on the spinel AOT lane — the failing routes' visits short-circuit cheaply, so treat the affected lane's timing rows above as optimistic. Details in the table.
| route | status | bytes | ms | AOT | AOT bytes | AOT ms |
|---|---|---|---|---|---|---|
/u | 200 | 292,443 | 65.14 | 200 | 292,443 | 10.99 |
/active | 200 | 2,497 | 7.66 | 200 | 2,497 | 0.34 |
/newest | 200 | 64,149 | 60.02 | 200 | 64,301 | 2.61 |
/recent | 200 | 2,724 | 13.36 | 200 | 2,724 | 0.35 |
/hottest | 200 | 16,369 | 51.16 | 200 | 63,944 | 4.72 |
/rss | 200 | 16,942 | 20.73 | 200 | 63,944 | 1.90 |
/privacy | 200 | 2,409 | 0.71 | 200 | 2,409 | 0.12 |
/about | 200 | 2,282 | 0.31 | 200 | 2,282 | 0.23 |
/settings | 200 | 15,219 | 1.63 | 200 | 15,219 | 0.36 |
/top?length=1d | 200 | 2,626 | 3.99 | 200 | 2,626 | 2.87 |
/top?length=1w | 200 | 2,629 | 4.70 | 200 | 2,629 | 2.56 |
/top?length=1y | 200 | 2,629 | 2.42 | 200 | 2,629 | 2.59 |
/hidden | 200 | 2,552 | 2.33 | 200 | 2,552 | 0.17 |
/saved | 200 | 5,207 | 16.13 | 200 | 5,197 | 0.59 |
/upvoted/stories | 200 | 2,725 | 2.80 | 200 | 2,725 | 0.16 |
/comments | 200 | 36,327 | 58.21 | 200 | 36,127 | 3.29 |
/upvoted/comments | 200 | 2,778 | 0.70 | 200 | 2,778 | 0.32 |
/threads | 200 | 60,632 | 39.42 | 200 | 2,575 | 0.63 |
/comments/6srqij/reply | 200 | 2,604 | 12.12 | 200 | 2,604 | 0.30 |
/threads/michell_wiegand | 200 | 60,641 | 8.93 | 200 | 2,584 | 0.73 |
/u/michell_wiegand | 200 | 4,263 | 2.32 | 500 | 117 | 0.39 |
/replies | 200 | 2,724 | 0.81 | 200 | 2,724 | 0.25 |
/replies/comments | 200 | 2,720 | 0.43 | 200 | 2,720 | 0.24 |
/replies/stories | 200 | 2,727 | 0.37 | 200 | 2,727 | 0.25 |
/replies/unread | 200 | 2,764 | 1.21 | 200 | 2,764 | 0.53 |
/s/enr7ye | 200 | 7,692 | 22.69 | 200 | 5,887 | 0.72 |
ms columns are single-shot diagnostic latencies — use the medians above for performance. An AOT byte count is flagged when it falls more than 10% short of the CRuby lane's — a 200 that renders a fraction of the page.
Why they fail — grouped by reason, because a shared cause is one fix:
| lane | route(s) | reason |
|---|---|---|
| AOT | /u/michell_wiegand | NotImplementedError: gem facade: Markdowner.to_html is stubbed (write-path only; see runtime/gem_facades.rb) |
| command | scripts/bench-lobsters rails rails-int ruby ruby-int spinel --time 20 --src /home/rubys/ruby-bench/benchmarks/lobsters |
|---|---|
| source | /home/rubys/ruby-bench/benchmarks/lobsters |
| commit | a09ad5b9c09a3a932c8c68333be8f86f7e356fec |
| fixture commit | 09b76c8b0f94c8182080cdae01e95151f0e22dd9 |
| captured | 2026-07-30T15:38:56Z |
| database | file:lobsters_bench?mode=memory&cache=shared |
| story / comment | enr7ye / 6srqij |
| roundhouse ruby | ruby 4.0.5 (2026-05-20 revision 64336ffd0e) +YJIT +PRISM [x86_64-linux] |
|---|---|
| rails ruby | ruby 4.0.5 (2026-05-20 revision 64336ffd0e) +YJIT +PRISM [x86_64-linux] |
| rails | 8.1.1 |
| spinel (AOT) | spinel 83f1b90397a1 |
|---|---|
| C compiler | cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 |
| AOT compile | 1188.9 s |
| binary | 6.0 MiB |
| C warnings | 5 |
| spinel warnings | 23 |
| host | showcase.party |
|---|---|
| cpu | AMD Ryzen 5 3600 6-Core Processor |
| cores | 12 |
| kernel | Linux 6.8.0-136-generic |
| visits/iter | 114 |
|---|---|
| warmup | 15 |
| roundhouse iters | 76 |
| rails iters | 21 |