Test name | Executions per second |
---|---|
floor | 237267408.0 Ops/sec |
~~ | 240526912.0 Ops/sec |
>> 0 | 245494928.0 Ops/sec |
| 0 | 239451840.0 Ops/sec |
<< 0 | 246820368.0 Ops/sec |
& 0xFFFFFFFFFFFF | 240979904.0 Ops/sec |
^ 0x000000000000 | 236056384.0 Ops/sec |
Math.trunc() | 243044784.0 Ops/sec |
x - (x % 1) | 1011378880.0 Ops/sec |
parseInt() | 239586352.0 Ops/sec |