Test name | Executions per second |
---|---|
floor | 4639122.0 Ops/sec |
~~ | 8244711.5 Ops/sec |
>> 0 | 7216441.5 Ops/sec |
| 0 | 7777871.0 Ops/sec |
<< 0 | 7750852.0 Ops/sec |
& 0xFFFFFFFFFFFF | 7851833.0 Ops/sec |
^ 0x000000000000 | 8036604.0 Ops/sec |
Math.trunc() | 4614061.5 Ops/sec |
x - (x % 1) | 5318957.0 Ops/sec |
parseInt() | 4755957.0 Ops/sec |