Test name | Executions per second |
---|---|
floor | 4905661.5 Ops/sec |
~~ | 8346382.0 Ops/sec |
>> 0 | 8360852.0 Ops/sec |
| 0 | 8340542.0 Ops/sec |
<< 0 | 8356958.5 Ops/sec |
& 0xFFFFFFFFFFFF | 8339355.0 Ops/sec |
^ 0x000000000000 | 8361745.0 Ops/sec |
Math.trunc() | 4999561.0 Ops/sec |
x - (x % 1) | 4355253.0 Ops/sec |
parseInt() | 4917729.0 Ops/sec |