Test name | Executions per second |
---|---|
floor | 2088538.9 Ops/sec |
~~ | 3501907.5 Ops/sec |
>> 0 | 3569789.8 Ops/sec |
| 0 | 3513049.5 Ops/sec |
<< 0 | 3488443.2 Ops/sec |
& 0xFFFFFFFFFFFF | 3229001.2 Ops/sec |
^ 0x000000000000 | 2523322.8 Ops/sec |
Math.trunc() | 1278710.0 Ops/sec |
x - (x % 1) | 1529519.4 Ops/sec |
parseInt() | 1436056.9 Ops/sec |