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 41946360.0 Ops/sec
Math.round 41703612.0 Ops/sec
Math.trunc 41265780.0 Ops/sec
parseInt 30201962.0 Ops/sec
double negation 42787264.0 Ops/sec
bitwise XOR 44388708.0 Ops/sec
bitwise OR 45778740.0 Ops/sec
Right shift 10586718.0 Ops/sec
Unsigned right shift 8460427.0 Ops/sec
Modulo 7960605.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo