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 40761308.0 Ops/sec
Math.round 35006388.0 Ops/sec
Math.trunc 16463134.0 Ops/sec
parseInt 13347832.0 Ops/sec
double negation 12704672.0 Ops/sec
bitwise XOR 10446758.0 Ops/sec
bitwise OR 7780564.5 Ops/sec
Right shift 7606180.5 Ops/sec
Unsigned right shift 17326272.0 Ops/sec
Modulo 42703212.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo