Test name | Executions per second |
---|---|
floor | 3801194.8 Ops/sec |
~~ | 6933076.5 Ops/sec |
>> 0 | 6865386.5 Ops/sec |
| 0 | 6618054.0 Ops/sec |
<< 0 | 6597973.0 Ops/sec |
& 0xFFFFFFFFFFFF | 6797329.5 Ops/sec |
^ 0x000000000000 | 6858086.0 Ops/sec |
Math.trunc() | 3772577.0 Ops/sec |
x - (x % 1) | 4655610.5 Ops/sec |
parseInt() | 3647729.2 Ops/sec |