Ruby Shopify / yjit - Optimizing JIT compiler built inside CRuby

koell · 2021年05月17日 · 最后由 koell 回复于 2021年09月29日 · 568 次阅读

https://github.com/Shopify/yjit

rvm 用户

sudo apt-get install sqlite3 libsqlite3-dev
git clone https://github.com/Shopify/yjit.git yjit
cd yjit
./autogen.sh
./configure --disable-install-doc --disable--install-rdoc --prefix=$HOME/.rvm/rubies/ruby-yjit
make -j16 install

# rvm
rvm use ruby-yjit --create

https://bugs.ruby-lang.org/issues/18229

activerecord: 1.37x

Kokubun's railsbench: 1.16x

3 个月竟然提升这么多

需要 登录 后方可回复, 如果你还没有账号请 注册新账号