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 48772108.0 Ops/sec
Math.round 48609784.0 Ops/sec
Math.trunc 50179768.0 Ops/sec
parseInt 43884104.0 Ops/sec
double negation 58557180.0 Ops/sec
bitwise XOR 57829880.0 Ops/sec
bitwise OR 59580316.0 Ops/sec
Right shift 61534204.0 Ops/sec
Unsigned right shift 56210064.0 Ops/sec
Modulo 56431836.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo