Script Preparation code:
Tests:
  • i++

  • ++i

  • i += 1

  • i = i + 1

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    i++
    ++i
    i += 1
    i = i + 1

    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/89.0.4389.72 Safari/537.36
Chrome 89 on Windows
View result in a separate tab
Test name Executions per second
i++ 43981.2 Ops/sec
++i 43408.8 Ops/sec
i += 1 42754.9 Ops/sec
i = i + 1 42589.6 Ops/sec