diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2024-01-23 12:09:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 20:09:57 +0000 |
commit | c84237f9531aed3b204d3fdacc2dd9d2bd4c7d81 (patch) | |
tree | 924ec7260333bb75d8780e76325d5dd0303e0729 /benchmark | |
parent | 27c1dd8634d34bfe3592151d66b410f28ca749ce (diff) | |
download | ruby-c84237f9531aed3b204d3fdacc2dd9d2bd4c7d81.tar.gz |
Rewrite Array#each in Ruby using Primitive (#9533)
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/loop_each.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/benchmark/loop_each.yml b/benchmark/loop_each.yml new file mode 100644 index 0000000000..1c757185a8 --- /dev/null +++ b/benchmark/loop_each.yml @@ -0,0 +1,4 @@ +prelude: | + arr = [nil] * 30_000_000 +benchmark: + loop_each: arr.each{|e|} |