Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Mobile Safari/537.36
Chrome Mobile 138
Android
Mobile
10 months ago
Test name Executions per second
Math.floor 42856632.0 Ops/sec
Math.round 44513300.0 Ops/sec
Math.trunc 40305496.0 Ops/sec
parseInt 17389994.0 Ops/sec
double negation 27385542.0 Ops/sec
bitwise XOR 34415456.0 Ops/sec
bitwise OR 45112636.0 Ops/sec
Right shift 24578132.0 Ops/sec
Unsigned right shift 9727540.0 Ops/sec
Modulo 8009587.5 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo