Rails-7

Rails 7 allows benchmark method to be called from anywhere

Rails 7 allows benchmark method to be called from anywhere with Rails.benchmark("test") { ... }