Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 78daad6

Browse files
committed
But wait...using this old benchmark it does make a difference?
1 parent af5f60a commit 78daad6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

benchmarks/require_relative_v_require.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,27 @@
4949
# virtually no penalty
5050
#
5151
# ###################################
52+
53+
__END__
54+
55+
Ruby 2.0:
56+
57+
➜ rspec-core git:(benchmark-require-relative) REQUIRE_RELATIVE=1 bundle exec ruby benchmarks/require_relative_v_require.rb
58+
0.000000 0.030000 1.470000 ( 1.481949)
59+
0.000000 0.020000 1.440000 ( 1.462620)
60+
0.000000 0.020000 1.470000 ( 1.491825)
61+
➜ rspec-core git:(benchmark-require-relative) bundle exec ruby benchmarks/require_relative_v_require.rb
62+
0.000000 0.010000 1.510000 ( 1.549906)
63+
0.000000 0.010000 1.530000 ( 1.546252)
64+
0.000000 0.020000 1.510000 ( 1.531644)
65+
66+
Ruby 2.1:
67+
68+
➜ rspec-core git:(benchmark-require-relative) bundle exec ruby benchmarks/require_relative_v_require.rb
69+
0.000000 0.020000 1.570000 ( 1.613217)
70+
0.000000 0.020000 1.600000 ( 1.618540)
71+
0.010000 0.020000 1.570000 ( 1.608205)
72+
➜ rspec-core git:(benchmark-require-relative) REQUIRE_RELATIVE=1 bundle exec ruby benchmarks/require_relative_v_require.rb
73+
0.000000 0.020000 1.480000 ( 1.515131)
74+
0.000000 0.010000 1.480000 ( 1.527766)
75+
0.000000 0.020000 1.490000 ( 1.515631)

0 commit comments

Comments
 (0)