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 43425344.0 Ops/sec
Math.round 44190084.0 Ops/sec
Math.trunc 45876948.0 Ops/sec
parseInt 36588896.0 Ops/sec
double negation 57715112.0 Ops/sec
bitwise XOR 55196912.0 Ops/sec
bitwise OR 49780636.0 Ops/sec
Right shift 58184724.0 Ops/sec
Unsigned right shift 54909352.0 Ops/sec
Modulo 54381316.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo