Test name | Executions per second |
---|---|
floor | 6968416.0 Ops/sec |
~~ | 11533570.0 Ops/sec |
>> 0 | 11526986.0 Ops/sec |
| 0 | 11554949.0 Ops/sec |
<< 0 | 11548126.0 Ops/sec |
& 0xFFFFFFFFFFFF | 11480530.0 Ops/sec |
^ 0x000000000000 | 11489883.0 Ops/sec |
Math.trunc() | 6848104.0 Ops/sec |
x - (x % 1) | 7074121.0 Ops/sec |
parseInt() | 5554590.5 Ops/sec |