Test name | Executions per second |
---|---|
floor | 2488463.5 Ops/sec |
~~ | 4637190.0 Ops/sec |
>> 0 | 4643418.5 Ops/sec |
| 0 | 4665722.0 Ops/sec |
<< 0 | 4659269.5 Ops/sec |
& 0xFFFFFFFFFFFF | 4655771.0 Ops/sec |
^ 0x000000000000 | 4648296.5 Ops/sec |
Math.trunc() | 2472213.2 Ops/sec |
x - (x % 1) | 2950711.5 Ops/sec |
parseInt() | 2477732.0 Ops/sec |