aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2024-01-23 12:09:57 -0800
committerGitHub <noreply@github.com>2024-01-23 20:09:57 +0000
commitc84237f9531aed3b204d3fdacc2dd9d2bd4c7d81 (patch)
tree924ec7260333bb75d8780e76325d5dd0303e0729 /benchmark
parent27c1dd8634d34bfe3592151d66b410f28ca749ce (diff)
downloadruby-c84237f9531aed3b204d3fdacc2dd9d2bd4c7d81.tar.gz
Rewrite Array#each in Ruby using Primitive (#9533)
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/loop_each.yml4
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|}