Test name | Executions per second |
---|---|
floor | 419206.7 Ops/sec |
~~ | 780581.7 Ops/sec |
>> 0 | 779869.9 Ops/sec |
| 0 | 794760.2 Ops/sec |
<< 0 | 785091.8 Ops/sec |
& 0xFFFFFFFFFFFF | 778735.1 Ops/sec |
^ 0x000000000000 | 792815.9 Ops/sec |
Math.trunc() | 412901.4 Ops/sec |
x - (x % 1) | 485067.4 Ops/sec |
parseInt() | 422472.5 Ops/sec |