Test name | Executions per second |
---|---|
floor | 2388848.0 Ops/sec |
~~ | 7561190.5 Ops/sec |
>> 0 | 7545682.0 Ops/sec |
| 0 | 7609091.0 Ops/sec |
<< 0 | 7447150.0 Ops/sec |
& 0xFFFFFFFFFFFF | 7564721.0 Ops/sec |
^ 0x000000000000 | 7575813.0 Ops/sec |
Math.trunc() | 4087516.5 Ops/sec |
x - (x % 1) | 4984587.5 Ops/sec |
parseInt() | 4078848.8 Ops/sec |