Test name | Executions per second |
---|---|
floor | 2388933.2 Ops/sec |
~~ | 4225113.0 Ops/sec |
>> 0 | 4185666.5 Ops/sec |
| 0 | 4018711.0 Ops/sec |
<< 0 | 4011882.0 Ops/sec |
& 0xFFFFFFFFFFFF | 4015862.2 Ops/sec |
^ 0x000000000000 | 4253795.0 Ops/sec |
Math.trunc() | 2421015.2 Ops/sec |
x - (x % 1) | 2728235.2 Ops/sec |
parseInt() | 2412471.0 Ops/sec |