Open 8ctopus opened 1 year ago
Slightly updated the test with regular flushing intervals for apix (every 200 logs). It decreases the advantage of apix over monolog, but it's still very present:
-----------------------------------
platform : WINNT x64
php version : 8.1.9
xdebug : on
memory limit : 512M
max execution : 0
time per iteration : 50ms
iterations : 250
-----------------------------------
---------------------------------------------------------------
0 : logger_monolog logger_apix
mean : 107 2373 +2108.6%
median : 111 2496 +2148.2%
mode : 82 2600 +3070.7%
minimum : 3 499 +16533.3%
maximum : 175 3000 +1614.3%
quartile 1 : 82 2203 +2586.6%
quartile 3 : 136 2694 +1880.9%
IQ range : 54 491 +809.3%
std deviation : 36 476 +1234.2%
normality : 3.2% 3.2%
---------------------------------------------------------------
Hey Franck,
Did some speed tests comparing Apix vs. Monolog, it turns out in deferred mode, the speed gains are huge.
And respective code