DEV: Fix benchmark script

Following a recent commit (cb4b8146a30cd94b04db1b662fbebdb8021a7771),
the benchmark script wasn’t working anymore (and the related rake task).

This patch fixes it. It also adds some information about Ruby YJIT being
enabled or not.
This commit is contained in:
Loïc Guitaut
2024-11-14 16:42:17 +01:00
committed by Loïc Guitaut
parent 5563e9dc03
commit 581fb97bfa
2 changed files with 12 additions and 11 deletions

View File

@ -168,7 +168,7 @@ puts `bundle exec rake db:create`
`bundle exec rake db:migrate`
puts "Timing loading Rails"
measure("load_rails") { `bundle exec rake middleware` }
measure("load_rails") { `bundle exec rails middleware` }
puts "Populating Profile DB"
run("bundle exec ruby script/profile_db_generator.rb")
@ -320,6 +320,7 @@ begin
results.merge(
"timings" => @timings,
"ruby-version" => "#{RUBY_DESCRIPTION}",
"yjit" => RubyVM::YJIT.enabled?,
"rss_kb" => mem["rss_kb"],
"pss_kb" => mem["pss_kb"],
).merge(facts)