Each test was performed 5 times and an average time was calculated.
Optimized | Size | Average time [ms] | Heap size [MB] |
---|---|---|---|
❌ | 10e2 | 0.06158013343811035 | 3.1507919311523436 |
❌ | 10e4 | 2.3224000930786133 | 10.012129211425782 |
❌ | 10e6 | 246.5065408229828 | 487.14283142089846 |
✔️ | 10e2 | 0.05734000205993652 | 2.86851806640625 |
✔️ | 10e4 | 0.9794797897338867 | 3.3013275146484373 |
✔️ | 10e6 | 33.00432024002075 | 78.09739990234375 |