Run details:
Mozilla/5.0 (Linux; Android 8.0.0; ASUS_X00RD) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Mobile Safari/537.36
Chrome Mobile 70
Android 8.0.0
Mobile
3 years ago
Test name Executions per second
Math.pow 246853.2 Ops/sec
x=x*x 348708.9 Ops/sec
x*=x 346869.7 Ops/sec
Script Preparation code:
Tests:
  • Math.pow

  • x=x*x

  • x*=x