2.1.5
Performance update
Aggregate method now up to 33 % faster.
PHPBench v2.1.5 ArrayIndex PHP 8.1.10 + JIT + opcache (no xdebug extension)
Items count | Memory | Find | Get Filters (aggregate) | Get Filters & Count (aggregate) | Sort by field | Results Found |
---|---|---|---|---|---|---|
10,000 | ~6Mb | ~0.0004 s. | ~0.001 s. | ~0.002 s. | ~0.0001 s. | 907 |
50,000 | ~40Mb | ~0.001 s. | ~0.005 s. | ~0.010 s. | ~0.0005 s. | 4550 |
100,000 | ~80Mb | ~0.003 s. | ~0.016 s. | ~0.029 s. | ~0.001 s. | 8817 |
300,000 | ~189Mb | ~0.011 s. | ~0.044 s. | ~0.091 s | ~0.004 s. | 26891 |
1,000,000 | ~657Mb | ~0.047 s. | ~0.169 s. | ~0.333 s. | ~0.018 s. | 90520 |
PHPBench v2.1.5 FixedArrayIndex PHP 8.1.10 + JIT + opcache (no xdebug extension)
Items count | Memory | Find | Get Filters (aggregate) | Get Filters & Count (aggregate) | Sort by field | Results Found |
---|---|---|---|---|---|---|
10,000 | ~2Mb | ~0.0007 s. | ~0.001 s. | ~0.003 s. | ~0.0002 s. | 907 |
50,000 | ~12Mb | ~0.003 s. | ~0.007 s. | ~0.018 s. | ~0.0009 s. | 4550 |
100,000 | ~23Mb | ~0.006 s. | ~0.017 s. | ~0.040 s. | ~0.002 s. | 8817 |
300,000 | ~70Mb | ~0.020 s. | ~0.059 s. | ~0.118 s. | ~0.006 s. | 26891 |
1,000,000 | ~233Mb | ~0.079 s. | ~0.206 s. | ~0.448 s. | ~0.026 s. | 90520 |