summaryrefslogtreecommitdiff
path: root/benchmark/loop_generator.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-12-25 21:46:29 -0800
committerGitHub <noreply@github.com>2022-12-25 21:46:29 -0800
commit509da028c2249cd386190f2856e91549cc9e6c23 (patch)
treee85a575800cb14245f8acbb0ffe369b22761912c /benchmark/loop_generator.rb
parenta236661a62dc89173dcdd9e071365929db1201a7 (diff)
Rewrite Kernel#loop in Ruby (#6983)
* Rewrite Kernel#loop in Ruby * Use enum_for(:loop) { Float::INFINITY } Co-authored-by: Ufuk Kayserilioglu <ufuk@paralaus.com> * Limit the scope to rescue StopIteration Co-authored-by: Ufuk Kayserilioglu <ufuk@paralaus.com>
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'benchmark/loop_generator.rb')
-rw-r--r--benchmark/loop_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/loop_generator.rb b/benchmark/loop_generator.rb
index d3375c744c..6a3194b670 100644
--- a/benchmark/loop_generator.rb
+++ b/benchmark/loop_generator.rb
@@ -1,4 +1,4 @@
-max = 600000
+max = 6000000
if defined? Fiber
gen = (1..max).each