Test name | Executions per second |
---|---|
floor | 93021032.0 Ops/sec |
~~ | 101585400.0 Ops/sec |
>> 0 | 95954520.0 Ops/sec |
| 0 | 104342760.0 Ops/sec |
<< 0 | 91011104.0 Ops/sec |
& 0xFFFFFFFFFFFF | 86349832.0 Ops/sec |
^ 0x000000000000 | 107056488.0 Ops/sec |
Math.trunc() | 92704448.0 Ops/sec |
x - (x % 1) | 355190816.0 Ops/sec |
parseInt() | 101909072.0 Ops/sec |