summaryrefslogtreecommitdiff
path: root/benchmark/bm_require.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bm_require.rb')
-rw-r--r--benchmark/bm_require.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/bm_require.rb b/benchmark/bm_require.rb
new file mode 100644
index 0000000..b8abc88
--- /dev/null
+++ b/benchmark/bm_require.rb
@@ -0,0 +1,7 @@
+$:.push File.join(File.dirname(__FILE__), "bm_require.data")
+
+1.upto(10000) do |i|
+ require "c#{i}"
+end
+
+$:.pop