Test name | Executions per second |
---|---|
floor | 71562296.0 Ops/sec |
~~ | 122757816.0 Ops/sec |
>> 0 | 123488784.0 Ops/sec |
| 0 | 122682264.0 Ops/sec |
<< 0 | 122801200.0 Ops/sec |
& 0xFFFFFFFFFFFF | 122065232.0 Ops/sec |
^ 0x000000000000 | 119944648.0 Ops/sec |
Math.trunc() | 72080368.0 Ops/sec |
x - (x % 1) | 14322699.0 Ops/sec |
parseInt() | 25140656.0 Ops/sec |