Script Preparation code:
Tests:
  • Through DataView

  • Direct

  • With BigInt

  • Simple Loop

  • Loop No Assignment

  • Loop No Assignment No Second Counter

  • Loop Exit on 0

  • Loop Exit on 0 single byte

  • Loop Exit on 0 with 0

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Through DataView
    Direct
    With BigInt
    Simple Loop
    Loop No Assignment
    Loop No Assignment No Second Counter
    Loop Exit on 0
    Loop Exit on 0 single byte
    Loop Exit on 0 with 0

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Through DataView 2155226.0 Ops/sec
Direct 7982841.0 Ops/sec
With BigInt 982669.6 Ops/sec
Simple Loop 7913822.0 Ops/sec
Loop No Assignment 7869216.0 Ops/sec
Loop No Assignment No Second Counter 7947381.0 Ops/sec
Loop Exit on 0 8076628.0 Ops/sec
Loop Exit on 0 single byte 8140287.0 Ops/sec
Loop Exit on 0 with 0 8233825.0 Ops/sec