Test name | Executions per second |
---|---|
floor | 6480115.5 Ops/sec |
~~ | 12032304.0 Ops/sec |
>> 0 | 12060159.0 Ops/sec |
| 0 | 11237267.0 Ops/sec |
<< 0 | 11512505.0 Ops/sec |
& 0xFFFFFFFFFFFF | 11814314.0 Ops/sec |
^ 0x000000000000 | 11329611.0 Ops/sec |
Math.trunc() | 6799171.5 Ops/sec |
x - (x % 1) | 7585910.0 Ops/sec |
parseInt() | 6807917.0 Ops/sec |