Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/28.0 Chrome/130.0.0.0 Mobile Safari/537.36
Chrome Mobile 130
Android
Mobile
10 months ago
Test name Executions per second
Math.floor 45884716.0 Ops/sec
Math.round 43055424.0 Ops/sec
Math.trunc 46840052.0 Ops/sec
parseInt 37214428.0 Ops/sec
double negation 55541064.0 Ops/sec
bitwise XOR 55311616.0 Ops/sec
bitwise OR 54128636.0 Ops/sec
Right shift 51708760.0 Ops/sec
Unsigned right shift 56177896.0 Ops/sec
Modulo 52898236.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo