swebb2066 opened a new pull request, #335:
URL: https://github.com/apache/logging-log4cxx/pull/335

   This PR aims to reduce synchronization contention when logging through 
AsynicAppender.
   
   Relevant Windows benchmarks improve from:
   
    | Benchmark | Time | CPU | Iterations | 
    | --------- | ----- | ----- | --------- |
    | Logging int value using MessageBuffer, pattern: %m%n | 1666 ns | 739 ns | 
1120000 | 
    | Logging int value using MessageBuffer, pattern: %m%n/threads:4 | 710 ns | 
1090 ns | 573440 | 
    | Logging int value using MessageBuffer, pattern: [%d] %m%n | 1727 ns | 816 
ns | 746667 | 
    | Logging int value using MessageBuffer, pattern: [%d] [%c] [%p] %m%n | 
1686 ns | 688 ns | 1000000 | 
    | Logging int value using FMT, pattern: %m%n | 730 ns | 353 ns | 2036364 | 
    | Logging int value using FMT, pattern: %m%n/threads:4 | 504 ns | 1004 ns | 
995556 | 
    | Async, int value using MessageBuffer, pattern: %m%n | 1719 ns | 673 ns | 
1115023 | 
    | Async, int value using MessageBuffer, pattern: %m%n/threads:4 | 789 ns | 
1360 ns | 448000 | 
   
   to:
   
    | Benchmark | Time | CPU | Iterations | 
    | -------- | ---- | ----- | ------------------- | 
    | Logging int value using MessageBuffer, pattern: %m%n | 2181 ns | 507 ns | 
1079054 | 
    | Logging int value using MessageBuffer, pattern: %m%n/threads:4 | 727 ns | 
1591 ns | 716800 | 
    | Logging int value using MessageBuffer, pattern: [%d] %m%n | 1898 ns | 
1046 ns | 746667 | 
    | Logging int value using MessageBuffer, pattern: [%d] [%c] [%p] %m%n | 
1672 ns | 858 ns | 746667 | 
    | Logging int value using FMT, pattern: %m%n | 747 ns | 474 ns | 1120000 | 
    | Logging int value using FMT, pattern: %m%n/threads:4 | 454 ns | 929 ns | 
689232 | 
    | Async, int value using MessageBuffer, pattern: %m%n | 1654 ns | 879 ns | 
1120000 | 
    | Async, int value using MessageBuffer, pattern: %m%n/threads:4 | 671 ns | 
1484 ns | 400000 | 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to