Test name | Executions per second |
---|---|
floor | 6986025.5 Ops/sec |
~~ | 12753681.0 Ops/sec |
>> 0 | 12696862.0 Ops/sec |
| 0 | 12637088.0 Ops/sec |
<< 0 | 12671145.0 Ops/sec |
& 0xFFFFFFFFFFFF | 12634936.0 Ops/sec |
^ 0x000000000000 | 12630239.0 Ops/sec |
Math.trunc() | 6346693.5 Ops/sec |
x - (x % 1) | 8213781.5 Ops/sec |
parseInt() | 6988046.0 Ops/sec |