Script Preparation code:
Tests:
  • ++i, division and multiplication

  • ++i and bit shift

  • i += 2

  • ++i, ++i

  • ++i, [++i]

  • [++i], [++i]

  • [i++], [i++]

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    ++i, division and multiplication
    ++i and bit shift
    i += 2
    ++i, ++i
    ++i, [++i]
    [++i], [++i]
    [i++], [i++]

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Chrome 100 on Windows
View result in a separate tab
Test name Executions per second
++i, division and multiplication 10548.7 Ops/sec
++i and bit shift 10729.3 Ops/sec
i += 2 10966.3 Ops/sec
++i, ++i 10628.6 Ops/sec
++i, [++i] 10966.3 Ops/sec
[++i], [++i] 10916.4 Ops/sec
[i++], [i++] 10755.8 Ops/sec