Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for (lenght 另外儲存)
    foreach with operation
    some
    for..of
    for (lenght 不另外儲存)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118 on Mac OS X 10.15.7
View result in a separate tab
for..of
332K/s
for (lenght 另外儲存)
320K/s
foreach with operation
109K/s
some
102K/s
for (lenght 不另外儲存)
4K/s
View exact numbers
Test name Executions per second
for..of 332,441 Ops/sec
for (lenght 另外儲存) 319,884 Ops/sec
foreach with operation 108,578 Ops/sec
some 101,570 Ops/sec
for (lenght 不另外儲存) 3,663 Ops/sec