Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Chrome 138
Linux
Desktop
10 months ago
Test name Executions per second
Math.floor 114590920.0 Ops/sec
Math.round 100944280.0 Ops/sec
Math.trunc 112929512.0 Ops/sec
parseInt 80363272.0 Ops/sec
double negation 117238800.0 Ops/sec
bitwise XOR 111013448.0 Ops/sec
bitwise OR 116560832.0 Ops/sec
Right shift 109906864.0 Ops/sec
Unsigned right shift 108356056.0 Ops/sec
Modulo 124375320.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo