Hacker News new | ask | show | jobs
by willcodeforfoo 1256 days ago
Just some anecdata but I'm not seeing such dramatic improvements with YJIT, actually in my limited testing it's much slower...

Ruby 3.2.0, on a M1 MacBook Pro hitting a simple healthcheck route in a production Rails 6.1 app with wrk (`wrk -c8 -t8 -d30s http://localhost:3000/healthcheck`):

- 423 reqs/second with JIT disabled (using 229MB of RAM)

- 74 reqs/second running with `RUBYOPT="--yjit"` (using 385 MB of RAM)

I must be doing something wrong?

1 comments

did u check to see ruby is with YJIT enabled?

RubyVM::YJIT.enabled?

RubyVM::YJIT.runtime_stats