Test name | Executions per second |
---|---|
floor | 4563952.0 Ops/sec |
~~ | 9160164.0 Ops/sec |
>> 0 | 9122021.0 Ops/sec |
| 0 | 8994003.0 Ops/sec |
<< 0 | 9110642.0 Ops/sec |
& 0xFFFFFFFFFFFF | 8998301.0 Ops/sec |
^ 0x000000000000 | 8998203.0 Ops/sec |
Math.trunc() | 4583571.5 Ops/sec |
x - (x % 1) | 5862436.5 Ops/sec |
parseInt() | 4758695.5 Ops/sec |