Test name | Executions per second |
---|---|
floor | 7597651.0 Ops/sec |
~~ | 13800652.0 Ops/sec |
>> 0 | 13820402.0 Ops/sec |
| 0 | 13814746.0 Ops/sec |
<< 0 | 13797936.0 Ops/sec |
& 0xFFFFFFFFFFFF | 13789776.0 Ops/sec |
^ 0x000000000000 | 13787701.0 Ops/sec |
Math.trunc() | 7548541.0 Ops/sec |
x - (x % 1) | 6993543.5 Ops/sec |
parseInt() | 7658768.0 Ops/sec |