YJIT and Jemalloc on Rails


I have project runs in rails 6.x.x and ruby 3.x.x I added yjit and jemalloc to project but i dont see any performance difference between with them and without them. Am i missing implement somtehing? Here is my implmenetation


source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.1.0'


release: bundle exec rails db:migrate
web: RUBYOPT='--yjit' jemalloc.sh bin/rails server -p $PORT -e $RAILS_ENV
worker: bundle exec sidekiq -C config/sidekiq.yml

Do you use anything tool to profile your app like rack-mini-profiler?