Test name | Executions per second |
---|---|
floor | 412115.1 Ops/sec |
~~ | 791416.3 Ops/sec |
>> 0 | 799817.9 Ops/sec |
| 0 | 776021.1 Ops/sec |
<< 0 | 799907.0 Ops/sec |
& 0xFFFFFFFFFFFF | 805900.8 Ops/sec |
^ 0x000000000000 | 805298.6 Ops/sec |
Math.trunc() | 421166.2 Ops/sec |
x - (x % 1) | 483622.5 Ops/sec |
parseInt() | 426409.1 Ops/sec |