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 on every route IN SCOPE, and every timed visit returns 200. Routes deferred out of scope are listed below with the reason; they are excluded from the timed sequence in every lane, including Rails, so the lanes still measure the same work.
| route | why | closes with | since |
|---|---|---|---|
/hottest | this snapshot's Story#as_json serializes a nested record (`submitter_user: user`), which the render-json monomorphizer declines, so the emit answers this route with its html arm | nested-record encoding: Story's writer calling User's, where User#as_json is the attrs + super(only:) idiom with four row-dependent keys, a pluck, and keybase_signatures (an Array of Hashes, which needs its own encoding) | 2026-08-03 |
/u/:username | Markdowner.to_html is a raising facade -- the AOT tree ships no CommonMark renderer | a Commonmarker/Markly facade over an iterative Node#walk plus the DOM surgery Markdowner does (h1-h6 to strong, images to links, rel=ugc, @mention linkifier); scripts/markly-conformance already carries vectors generated from the real gem | 2026-08-03 |
These are counted as failures in every number on this page — the parity badge above still reads them as not rendering what Rails renders. Listing them here separates a capability we have not built from a difference nobody has explained; both are failures, and only one is a surprise.
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. The per-route table further down replays each distinct route once, before warmup, to verify status, bytes and content — it publishes no latency; each lane's pre-warmup single shot stays in its summary JSON as a diagnostic.
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.
5 lanes, three of them the claim. Rails YJIT is the baseline; Roundhouse YJIT is the like-for-like comparison against it — same runtime, same JIT, so the only variable is the code; Roundhouse AOT is the same emit through a different runtime, and is not at full content parity. The 2 no-JIT rows size the JIT's contribution and are not the headline.
1.94× faster than Rails — 266.8 ms/iter (avg) vs Rails' 518.4, 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 | avg ms/iter | min–max | CV | drift | iters | vs Rails | vs Rails (parity only) |
|---|---|---|---|---|---|---|---|---|
| Roundhouse | AOT | 115.39 | 112.5–122.8 | 1.4% | -0.7% | 72 | 4.49× | 4.46× 19 routes |
| Roundhouse | YJIT | 266.84 | 264.7–268.3 | 0.5% | -0.8% | 23 | 1.94× | 1.88× 22 routes |
| Roundhouse | no JIT | 386.37 | 384.1–388.3 | 0.3% | -0.5% | 20 | 2.25× | 2.21× 22 routes |
| Rails | YJIT | 518.41 | 509.7–541.6 | 1.6% | -0.7% | 20 | 1.00× | — |
| Rails | no JIT | 871.07 | 853.7–890.3 | 1.0% | -0.2% | 20 | 1.00× | — |
Every lane queried SQLite 3.50.3 at runtime.
The AOT lane marks generationally — spinel's default collector since d3b1400d, attested by the binary's own counters rather than by what the harness exported. Roundhouse AOT: 711 collections in the timed loop, 608 of them whole-heap.
Two ratios, because one lane is not rendering what Rails renders. Roundhouse YJIT is at 25/26 content parity; over the 22 routes it renders equivalently it is 1.88× (243.6 ms/iter vs 459.0), against 1.94× over the whole sequence; Roundhouse no JIT is at 25/26 content parity; over the 22 routes it renders equivalently it is 2.21× (354.2 ms/iter vs 782.3), against 2.25× over the whole sequence; Roundhouse AOT is at 20/26 content parity; over the 19 routes it renders equivalently it is 4.46× (75.4 ms/iter vs 336.3), against 4.49× over the whole sequence. Both sides of the restricted division cover the same routes. The unrestricted number is not wrong, but part of it is earned by rendering less.
| lane | code region | iseqs compiled | invalidations | code GCs | compile time |
|---|---|---|---|---|---|
| Roundhouse YJIT | 2,759 KiB / 3,900 KiB | +2 | 0 | 0 | +2.7 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-10-01T09:09:29Z · host showcase.party — one process per lane, JIT pinned per lane.
Where the overall 1.94× 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.
Both headline ratios include the transpile. Isolating the two: transpiling accounts for the bulk of the win, and AOT compilation adds a further 2.31× over the same emit running on CRuby+YJIT — in aggregate only, since AOT is faster on the heavy routes and slower on the cheap ones, where per-request fixed costs dominate.
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 |
|---|---|---|---|---|---|---|---|
/newest | 14.54 | 26.49 | 4.84 | 7.59 | 2.32 own 2.06 | 3.00× | 5 |
/threads | 14.46 | 25.95 | 5.05 | 7.68 | 2.23 | 2.86× | 3 |
/threads/:username | 11.35 own 9.43 | 19.63 | 4.10 | 6.23 | 2.10 own 1.81 | 2.77× | 2 |
/rss | 10.84 | 16.39 | 5.84 | 7.94 | 1.71 own 1.50 | 1.86× | 4 |
/comments | 8.69 | 15.74 | 4.36 | 6.29 | 2.10 | 1.99× | 4 |
/s/:story_id | 6.40 | 11.40 | 2.39 | 3.56 | 0.88 | 2.68× | 15 |
/top?length=1d | 4.51 | 6.06 | 4.03 | 4.84 | 2.76 | 1.12× | 4 |
/top?length=1w | 4.51 | 6.17 | 4.04 | 4.84 | 2.74 | 1.12× | 2 |
/top?length=1y | 4.33 | 5.93 | 3.88 | 4.62 | 2.67 | 1.12× | 2 |
/saved | 3.82 | 6.81 | 1.77 | 2.72 | 0.60 | 2.15× | 5 |
/settings | 3.28 | 5.50 | 1.58 | 2.35 | 0.43 | 2.08× | 3 |
/recent | 2.97 | 5.02 | 5.63 | 6.47 | 4.53 | 0.53× | 2 |
/u cached | 2.49 | 3.54 | 1.54 | 2.35 | 0.41 | 1.62× | 15 |
/replies/comments | 2.14 | 3.17 | 1.49 | 2.32 | 0.53 own 0.43 | 1.44× | 3 |
/upvoted/comments | 2.14 | 3.52 | 1.59 | 2.37 | 0.50 own 0.44 | 1.34× | 3 |
/replies/unread | 2.11 | 3.36 | 1.60 | 2.38 | 0.45 | 1.32× | 7 |
/active | 2.11 | 3.83 | 1.66 | 2.49 | 0.50 | 1.27× | 6 |
/replies/stories | 2.09 | 3.20 | 1.54 | 2.30 | 0.52 own 0.41 | 1.36× | 2 |
/upvoted/stories | 2.05 | 3.60 | 1.56 | 2.37 | 0.43 | 1.32× | 6 |
/hidden | 2.02 | 3.70 | 1.54 | 2.36 | 0.48 | 1.30× | 4 |
/replies | 1.98 | 3.06 | 1.54 | 2.34 | 0.53 own 0.41 | 1.28× | 3 |
/comments/:comment_id/reply | 1.90 | 3.20 | 1.55 | 2.37 | 0.54 | 1.23× | 5 |
/about | 1.26 | 2.14 | 1.51 own 1.28 | 2.26 | 0.39 | 0.83× | 1 |
AOT is slower than the same emit on CRuby+YJIT on 0 of 23 endpoints by median, but only 0 of 23 on own work. Routes that lose on both are the ones where the emitted code is genuinely behind.
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). A route marked cached serves its timed visits from a cache in the app itself (lobsters keeps some whole pages for 24h), in every lane — those medians price a cache hit, not the render. An own figure appears where a route's median runs more than 10% above its own work (p25 of its visits) — the gap is collection triggered during that visit but caused by the heap the whole sequence built, so it belongs to the lane rather than to the route. It is largest on the cheapest routes, which is where the median is least trustworthy as a per-route cost. A floor figure appears below that where p25 is itself more than 10% above the fastest visit recorded: p25 only removes collection cost when fewer than a quarter of a route's visits collect, and where more than a quarter do, p25 is still pricing marks. The floor is one sample and therefore noisy downward — read it as a bound, not a measurement.
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.
Roundhouse AOT is at 20/26 content parity; Roundhouse no JIT is at 25/26 content parity; Roundhouse YJIT is at 25/26 content parity. Peak memory is measured over the same sequence as the timings, so a lane that renders less also allocates and retains less — read its bar the way you read its ms/iter, not as a like-for-like footprint.
| stack | JIT | baseline | peak | growth | vs Rails (memory) |
|---|---|---|---|---|---|
| Roundhouse | AOT | 64 MB | 89 MB | +24 MB | — |
| Roundhouse | no JIT | 99 MB | 112 MB | +13 MB | 2.73× |
| Roundhouse | YJIT | 99 MB | 128 MB | +28 MB | 2.70× |
| Rails | no JIT | 176 MB | 306 MB | +129 MB | 1.00× |
| Rails | YJIT | 183 MB | 345 MB | +163 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 | AOT | AOT bytes |
|---|---|---|---|---|
/u cached | 200 | 173,521 | 200 | 173,521 |
/active | 200 | 2,452 | 200 | 2,452 |
/newest | 200 | 61,250 | 200 | 61,250 |
/recent | 200 | 2,679 | 200 | 2,679 |
/hottest declared gap | 200 | 16,369 | 200 | 61,296 |
/rss | 200 | 16,362 | 200 | 16,362 |
/privacy | 200 | 2,365 | 200 | 2,365 |
/about | 200 | 2,238 | 200 | 2,238 |
/settings | 200 | 15,167 | 200 | 15,167 |
/top?length=1d | 200 | 2,581 | 200 | 2,584 |
/top?length=1w | 200 | 2,584 | 200 | 2,584 |
/top?length=1y | 200 | 2,584 | 200 | 2,584 |
/hidden | 200 | 2,507 | 200 | 2,507 |
/saved | 200 | 5,048 | 200 | 5,048 |
/upvoted/stories | 200 | 2,680 | 200 | 2,680 |
/comments | 200 | 35,716 | 200 | 35,716 |
/upvoted/comments | 200 | 2,730 | 200 | 2,730 |
/threads | 200 | 57,907 | 200 | 57,907 |
/comments/6srqij/reply | 200 | 2,603 | 200 | 2,603 |
/threads/michell_wiegand | 200 | 57,916 | 200 | 57,916 |
/u/michell_wiegand declared gap | 200 | 4,209 | 500 | 117 |
/replies | 200 | 2,673 | 200 | 2,673 |
/replies/comments | 200 | 2,669 | 200 | 2,669 |
/replies/stories | 200 | 2,676 | 200 | 2,676 |
/replies/unread | 200 | 2,713 | 200 | 2,713 |
/s/enr7ye | 200 | 7,390 | 200 | 5,687 |
This table verifies parity — what each route answered and how much of it — not speed; the timing sections above are the performance numbers. A route marked cached serves its timed visits from a cache in the app itself (lobsters keeps some whole pages for 24h), in every lane. 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 | f677023b7c7a0b6f5283964f7b6ec06743a4b58c |
| fixture commit | 17dcac94f1b11d637abc2d4e132ce69f8fac4241 |
| captured | 2026-10-01T09:09:29Z |
| 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 2026.09.12+3401 (1896d3d66) [gcc 13.3.0 (cc)] |
|---|---|
| C compiler | cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 |
| AOT compile | 176.2 s |
| binary | 12.1 MiB |
| C warnings | 58 |
| spinel warnings | 0 |
| host | showcase.party |
|---|---|
| cpu | AMD Ryzen 5 3600 6-Core Processor |
| cores | 12 |
| kernel | Linux 6.8.0-139-generic |
| visits/iter | 106 |
|---|---|
| warmup | 15 |
| roundhouse iters | 23 |
| rails iters | 20 |