Run details:
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
Android
Mobile
2 years ago
Test name Executions per second
Math.abs(x) 1744941.2 Ops/sec
x *= -1 2452646.5 Ops/sec
x=-x 2457162.0 Ops/sec
Script Preparation code:
Tests:
  • Math.abs(x)

  • x *= -1

  • x=-x


;