I tested three variations of my C ++ logging subsystem. One of them is Log4cplus, one is Pantheios, and the last is a simple registration library that we ourselves created.
Log4cplus was much slower than the other two. The following are the results of registering 1,000,000 journal entries:
- log4cplus: 200 seconds EDIT: setting the buffer size reduced it to 120 seconds
- mylogger: 55 seconds
- Pantheios: 35 seconds
I am wondering if any performance tuning is missing.
I must add that I always use the root log, I register the file and register: LOG4CPLUS_INFO(rootLogger, "Replace me with the text!");
thanks reza
c ++ performance logging log4cplus pantheios
RezaPlusPlus
source share