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 106344352.0 Ops/sec
Math.round 108058320.0 Ops/sec
Math.trunc 122790152.0 Ops/sec
parseInt 72551952.0 Ops/sec
double negation 100978560.0 Ops/sec
bitwise XOR 117431152.0 Ops/sec
bitwise OR 114605184.0 Ops/sec
Right shift 129094416.0 Ops/sec
Unsigned right shift 110081464.0 Ops/sec
Modulo 102635832.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo