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 44678556.0 Ops/sec
Math.round 44593704.0 Ops/sec
Math.trunc 45974376.0 Ops/sec
parseInt 38977164.0 Ops/sec
double negation 51644856.0 Ops/sec
bitwise XOR 56328520.0 Ops/sec
bitwise OR 53568776.0 Ops/sec
Right shift 54401836.0 Ops/sec
Unsigned right shift 51660024.0 Ops/sec
Modulo 52516832.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo