Running on Ruby 2.7

This site is running Puma on a Heroku 1X dyno. Following are some metrics switched from Ruby 2.6 to 2.7.

Background

MALLOC_ARENA_MAX=2
RAILS_MAX_THREADS=5
RUBY_GC_HEAP_GROWTH_FACTOR=1.03
WEB_CONCURRENCY=4
RUBYOPT=--jit

and in puma config:

# config/puma.rb
before_fork do
  GC.compact if GC.respond_to?(:compact)
end

Observations

Ruby 2.7 seems to use as much memory as possible.

Response time was about 300-400ms in Ruby 2.6, <200ms in Ruby 2.7.

Gems to work with Ruby 2.7