Test name | Executions per second |
---|---|
floor | 367538.5 Ops/sec |
~~ | 766938.3 Ops/sec |
>> 0 | 935894.1 Ops/sec |
| 0 | 954203.1 Ops/sec |
<< 0 | 673674.0 Ops/sec |
& 0xFFFFFFFFFFFF | 703846.1 Ops/sec |
^ 0x000000000000 | 676970.9 Ops/sec |
Math.trunc() | 469261.0 Ops/sec |
x - (x % 1) | 612393.4 Ops/sec |
parseInt() | 485986.8 Ops/sec |