Test name | Executions per second |
---|---|
floor | 4257169.0 Ops/sec |
~~ | 8668166.0 Ops/sec |
>> 0 | 8657185.0 Ops/sec |
| 0 | 8611660.0 Ops/sec |
<< 0 | 8699151.0 Ops/sec |
& 0xFFFFFFFFFFFF | 8597616.0 Ops/sec |
^ 0x000000000000 | 8586901.0 Ops/sec |
Math.trunc() | 4264511.5 Ops/sec |
x - (x % 1) | 5455553.0 Ops/sec |
parseInt() | 4251540.0 Ops/sec |