Test name | Executions per second |
---|---|
floor | 7782707.5 Ops/sec |
~~ | 14121847.0 Ops/sec |
>> 0 | 14174110.0 Ops/sec |
| 0 | 14164919.0 Ops/sec |
<< 0 | 13872785.0 Ops/sec |
& 0xFFFFFFFFFFFF | 13958653.0 Ops/sec |
^ 0x000000000000 | 13930419.0 Ops/sec |
Math.trunc() | 7709621.0 Ops/sec |
x - (x % 1) | 6620259.0 Ops/sec |
parseInt() | 7720188.0 Ops/sec |