Skip to content

Measure 4.1.1 against browser, with and without YJIT - #94

Merged
czj merged 1 commit into
mainfrom
bench-refresh-2026-11-29
Nov 29, 2026
Merged

czj merged 1 commit into
mainfrom
bench-refresh-2026-11-29

Conversation

@czj

@czj czj commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

The site and the README still showed Agentry 1.0.0 measured on 2026-11-04, so 4.1 had no YJIT numbers anywhere, and the README quoted 25 µs per request where 4.1.1 takes 17.

This reruns rake bench against browser at dd88933, with and without YJIT, and renders the site from it; the README's summary and Performance table follow by hand.

  • With YJIT: 17 µs per new user agent instead of 110 with browser (6.5×), 1.7 µs for one seen before instead of 102 (58×), 23 and 7 objects instead of 52 and 12 in 1.0.0.
  • Without JIT: 27 µs instead of 129 (4.7×), 3.2 µs instead of 116 (36×).
  • New machine: an Apple M5 Max instead of an M4 Max, so part of the change against the old figures is the hardware; the speedups compare both gems on the same machine.
  • Busy machine: other work was running, so this is the one of six runs closest to their per-figure median, within 3.5% of it everywhere; the six spread over 8 to 14% on some figures.
  • README line 27: 883 crawler user agents and 354 browser misses, as docs/bot_coverage.json and the site already say.

JRuby: what the cache locks of #90 cost under threads is in #93.

The six runs (µs)
Run browser YJIT, new browser YJIT, seen Agentry YJIT, new Agentry YJIT, seen browser, new browser, seen Agentry, new Agentry, seen
1 115.97 113.88 18.25 1.84 126.27 115.50 27.08 3.19
2, kept 109.67 101.77 16.93 1.74 129.14 115.75 27.27 3.18
3 113.36 106.43 16.81 1.78 125.93 122.78 28.05 3.52
4 114.97 98.27 16.68 1.73 129.88 112.67 26.26 3.08
5 113.91 99.36 16.47 1.74 118.69 110.05 26.55 3.23
6 107.33 102.66 18.20 1.73 126.11 112.69 27.02 3.17

Ruby 4.0.10, each figure the median of 7 measures inside its run.

Assisted-by: Claude Opus 5.5 [Claude Code]
@czj
czj enabled auto-merge (squash) November 29, 2026 19:41
@czj
czj merged commit 0fa932c into main Nov 29, 2026
19 checks passed
@czj
czj deleted the bench-refresh-2026-11-29 branch November 29, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant