Test name | Executions per second |
---|---|
floor | 3051823.2 Ops/sec |
~~ | 5325975.0 Ops/sec |
>> 0 | 5521977.0 Ops/sec |
| 0 | 5379613.5 Ops/sec |
<< 0 | 5291724.0 Ops/sec |
& 0xFFFFFFFFFFFF | 5572472.0 Ops/sec |
^ 0x000000000000 | 5399949.0 Ops/sec |
Math.trunc() | 3117000.2 Ops/sec |
x - (x % 1) | 3530646.5 Ops/sec |
parseInt() | 3121311.0 Ops/sec |