Test name | Executions per second |
---|---|
floor | 103051984.0 Ops/sec |
~~ | 140921264.0 Ops/sec |
>> 0 | 205431392.0 Ops/sec |
| 0 | 184603248.0 Ops/sec |
<< 0 | 168533920.0 Ops/sec |
& 0xFFFFFFFFFFFF | 154593024.0 Ops/sec |
^ 0x000000000000 | 161545008.0 Ops/sec |
Math.trunc() | 192196992.0 Ops/sec |
x - (x % 1) | 1107989248.0 Ops/sec |
parseInt() | 129346536.0 Ops/sec |