aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/testing/performance.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb
index 0d7d405127..351835553f 100644
--- a/activesupport/lib/active_support/testing/performance.rb
+++ b/activesupport/lib/active_support/testing/performance.rb
@@ -271,4 +271,10 @@ module ActiveSupport
end
end
-require 'active_support/testing/performance/mri'
+RUBY_ENGINE ||= "ruby"
+case RUBY_ENGINE
+ when "ruby" then require 'active_support/testing/performance/mri'
+ else
+ $stderr.puts "Your ruby interpreter is not supported for benchmarking."
+ exit
+end