$ ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
$ ruby slow_require.rb
3.15ms - time
21.05ms - oj/error
85.68ms - not_exist_file1
6.99ms - not_exist_file2
$ ruby --disable-gems slow_require.rb
5.88ms - time
0.19ms - oj/error
0.17ms - not_exist_file1
0.15ms - not_exist_file2
$ ruby -v
jruby 1.7.18 (1.9.3p551) 2014-12-22 625381c on OpenJDK 64-Bit Server VM 1.8.0_25-b18 +jit [linux-amd64]
$ ruby slow_require.rb
169.0ms - time
288.0ms - oj/error
11.0ms - not_exist_file1
13.0ms - not_exist_file2
$ ruby --disable-gems slow_require.rb
289.0ms - time
2.0ms - oj/error
2.0ms - not_exist_file1
1.0ms - not_exist_file2
$ ruby -v
rubinius 2.4.1 (2.1.0 b332f133 2014-12-04 3.5.0 JI) [x86_64-linux-gnu]
$ ruby slow_require.rb
37.87ms - time
522.34ms - oj/error
18.1ms - not_exist_file1
16.32ms - not_exist_file2
$ ruby --disable-gems slow_require.rb
75.39ms - time
1.14ms - oj/error
0.74ms - not_exist_file1
0.73ms - not_exist_file2