Script Preparation code:
Tests:
  • Basic for loop

  • For loop but caching the length

  • While loop that imitates a for loop

  • While loop that imitates a for loop caching len

  • While loop in reverse simplifying the test

  • While looping by popping values

  • for ... in loop

  • for ... in loop with integer test

  • For loop testing on existence rather than lengt

  • For loop testing on existence plus array lookup

  • For testing on existence rather than length array

  • For reference

  • Array.forEach() native implementation.

  • For reference against forEach()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Basic for loop
    For loop but caching the length
    While loop that imitates a for loop
    While loop that imitates a for loop caching len
    While loop in reverse simplifying the test
    While looping by popping values
    for ... in loop
    for ... in loop with integer test
    For loop testing on existence rather than lengt
    For loop testing on existence plus array lookup
    For testing on existence rather than length array
    For reference
    Array.forEach() native implementation.
    For reference against forEach()

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!