Ruby with jemalloc

By Ryan Romanchuk
On

Determine if binary was built with jemalloc

ruby -r rbconfig -e "puts RbConfig::CONFIG['MAINLIBS']"
-lpthread -ljemalloc -lgmp -ldl -lobjc

Build with jeamalloc

sudo apt install libjemalloc-dev -y
git -C ~/.rbenv/plugins/ruby-build pull
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.1.2
talk