summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bm_loop_for.rb3
-rw-r--r--benchmark/bm_loop_times.rb2
2 files changed, 4 insertions, 1 deletions
diff --git a/benchmark/bm_loop_for.rb b/benchmark/bm_loop_for.rb
new file mode 100644
index 0000000000..398f6ff611
--- /dev/null
+++ b/benchmark/bm_loop_for.rb
@@ -0,0 +1,3 @@
+for i in 1..30_000_000
+ #
+end
diff --git a/benchmark/bm_loop_times.rb b/benchmark/bm_loop_times.rb
index c5317b8228..521f72ad1a 100644
--- a/benchmark/bm_loop_times.rb
+++ b/benchmark/bm_loop_times.rb
@@ -1 +1 @@
-30000000.times{|e|}
+30_000_000.times{|e|}