Test name | Executions per second |
---|---|
floor | 6132039.0 Ops/sec |
~~ | 11339473.0 Ops/sec |
>> 0 | 11323799.0 Ops/sec |
| 0 | 11317494.0 Ops/sec |
<< 0 | 11281084.0 Ops/sec |
& 0xFFFFFFFFFFFF | 11270401.0 Ops/sec |
^ 0x000000000000 | 11269684.0 Ops/sec |
Math.trunc() | 6108379.0 Ops/sec |
x - (x % 1) | 5935345.5 Ops/sec |
parseInt() | 6141237.5 Ops/sec |