Test name | Executions per second |
---|---|
floor | 2830963.8 Ops/sec |
~~ | 6984928.5 Ops/sec |
>> 0 | 6770755.0 Ops/sec |
| 0 | 6648796.5 Ops/sec |
<< 0 | 6938372.0 Ops/sec |
& 0xFFFFFFFFFFFF | 6963347.5 Ops/sec |
^ 0x000000000000 | 6762582.0 Ops/sec |
Math.trunc() | 3501906.8 Ops/sec |
x - (x % 1) | 4595391.5 Ops/sec |
parseInt() | 2857945.2 Ops/sec |