Test name | Executions per second |
---|---|
floor | 675786.8 Ops/sec |
~~ | 1434331.1 Ops/sec |
>> 0 | 1425225.9 Ops/sec |
| 0 | 1426244.4 Ops/sec |
<< 0 | 1443752.8 Ops/sec |
& 0xFFFFFFFFFFFF | 1426258.8 Ops/sec |
^ 0x000000000000 | 1452330.4 Ops/sec |
Math.trunc() | 665534.8 Ops/sec |
x - (x % 1) | 970934.4 Ops/sec |
parseInt() | 667605.3 Ops/sec |