Test name | Executions per second |
---|---|
floor | 3182675.5 Ops/sec |
~~ | 6031162.5 Ops/sec |
>> 0 | 5995604.5 Ops/sec |
| 0 | 6006394.0 Ops/sec |
<< 0 | 6034550.5 Ops/sec |
& 0xFFFFFFFFFFFF | 6011509.0 Ops/sec |
^ 0x000000000000 | 6028905.5 Ops/sec |
Math.trunc() | 3194332.8 Ops/sec |
x - (x % 1) | 4131008.2 Ops/sec |
parseInt() | 3302539.5 Ops/sec |