Test name | Executions per second |
---|---|
floor | 2438778.0 Ops/sec |
~~ | 4310600.5 Ops/sec |
>> 0 | 4289705.0 Ops/sec |
| 0 | 4278965.5 Ops/sec |
<< 0 | 4297216.0 Ops/sec |
& 0xFFFFFFFFFFFF | 4241219.5 Ops/sec |
^ 0x000000000000 | 4230115.5 Ops/sec |
Math.trunc() | 2383607.2 Ops/sec |
x - (x % 1) | 2879685.0 Ops/sec |
parseInt() | 2396284.2 Ops/sec |