summaryrefslogtreecommitdiff
path: root/benchmark/bm_loop_generator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bm_loop_generator.rb')
-rw-r--r--benchmark/bm_loop_generator.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/benchmark/bm_loop_generator.rb b/benchmark/bm_loop_generator.rb
deleted file mode 100644
index d3375c7..0000000
--- a/benchmark/bm_loop_generator.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-max = 600000
-
-if defined? Fiber
- gen = (1..max).each
- loop do
- gen.next
- end
-else
- require 'generator'
- gen = Generator.new((0..max))
- while gen.next?
- gen.next
- end
-end