Script Preparation code:
Tests:
  • Math.abs(x)

  • x *= -1

  • x=-x

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.abs(x)
    x *= -1
    x=-x

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Linux; Android 11; Mi Note 10 Lite) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36
Chrome Mobile 98 on Android
View result in a separate tab
Test name Executions per second
Math.abs(x) 1744941.2 Ops/sec
x *= -1 2452646.5 Ops/sec
x=-x 2457162.0 Ops/sec


;