Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Mac OS X 10.15.7
Desktop
one year ago
reduce
11.5M/s
for optimized
10.4M/s
for
10.1M/s
while
6.1M/s
for of
3.3M/s
forEach
3.0M/s
for in
266K/s
for of babel
400/s
View exact numbers
Test name Executions per second
reduce 11,460,034 Ops/sec
for optimized 10,394,070 Ops/sec
for 10,116,943 Ops/sec
while 6,070,636 Ops/sec
for of 3,324,383 Ops/sec
forEach 2,984,208 Ops/sec
for in 266,177 Ops/sec
for of babel 400 Ops/sec
HTML Preparation code:
Tests: