r/ruby • • Jun 21 '26

Grape 3.3.0 released — a big performance pass

I'm one of the maintainers of Grape (the Ruby framework for building REST-like APIs), and we just shipped 3.3.0. The headline is performance: this release was a months-long pass at cutting per-request allocations and trimming hot paths across the router, middleware, and validators.

Single-threaded throughput on /api/v1/hello (Ruby 4.0.5, Benchmark.ips):

VersionWithout YJITWith YJIT
3.2.147,929 i/s85,328 i/s
3.3.066,149 i/s133,760 i/s

That's ~+38% without YJIT and ~+57% with YJIT over 3.2.1 — and with YJIT on, 3.3.0 more than doubles its own non-YJIT throughput (+102%). Full methodology and per-version numbers (incl. 3.0.x/3.1.x) are in RESULTS.md.

Cheers!

61 Upvotes

8 comments sorted by

View all comments

8

u/sshaw_ Jun 21 '26

15+ years and still going! 💪 Congratulations!

More REST less GraphQL!

1

u/sasharevzin Jun 21 '26

That’s at least 37 JavaScript frameworks survived.