You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2016/09/22 18:12:20 UTC
[jira] [Commented] (LOG4J2-1607) Improve performance of
SortedArrayStringMap data structure
[ https://issues.apache.org/jira/browse/LOG4J2-1607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15514041#comment-15514041 ]
Remko Popma commented on LOG4J2-1607:
-------------------------------------
Test updated. I haven't run against 2.6.2 yet but results look good to me. It is 3 am here now so time for my beauty sleep...
{noformat}
Testing multithreading
Testing 1 threads, NON-EMPTY context
###############################################
Logback: 56
Log4j 2.0: 58
###############################################
Testing 2 threads, NON-EMPTY context
###############################################
Logback: 45
Log4j 2.0: 33
###############################################
Testing 5 threads, NON-EMPTY context
###############################################
Logback: 78
Log4j 2.0: 57
###############################################
Testing 10 threads, NON-EMPTY context
###############################################
Logback: 145
Log4j 2.0: 102
###############################################
Testing 20 threads, NON-EMPTY context
###############################################
Logback: 307
Log4j 2.0: 135
###############################################
Testing 50 threads, NON-EMPTY context
###############################################
Logback: 685
Log4j 2.0: 122
###############################################
Testing multithreading
Testing 1 threads, EMPTY context
###############################################
Logback: 22
Log4j 2.0: 27
###############################################
Testing 2 threads, EMPTY context
###############################################
Logback: 25
Log4j 2.0: 27
###############################################
Testing 5 threads, EMPTY context
###############################################
Logback: 37
Log4j 2.0: 38
###############################################
Testing 10 threads, EMPTY context
###############################################
Logback: 72
Log4j 2.0: 55
###############################################
Testing 20 threads, EMPTY context
###############################################
Logback: 159
Log4j 2.0: 61
###############################################
Testing 50 threads, EMPTY context
###############################################
Logback: 342
Log4j 2.0: 309
###############################################
Single-threaded Log4j 2.0, EMPTY context
Single-threaded Logback, EMPTY context
###############################################
Logback: 40
Log4j 2.0: 25
###############################################
Single-threaded Log4j 2.0, NON-EMPTY context
Single-threaded Logback, NON-EMPTY context
###############################################
Logback: 39
Log4j 2.0: 41
###############################################
Process finished with exit code 0
{noformat}
> Improve performance of SortedArrayStringMap data structure
> ----------------------------------------------------------
>
> Key: LOG4J2-1607
> URL: https://issues.apache.org/jira/browse/LOG4J2-1607
> Project: Log4j 2
> Issue Type: Improvement
> Affects Versions: 2.7
> Reporter: Remko Popma
> Assignee: Remko Popma
>
> [Performance testing|https://issues.apache.org/jira/browse/LOG4J2-1349?focusedCommentId=15432877&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15432877] for LOG4J2-1349 showed that the SortedArray-based data structure can be copied fast, but its {{get()}} and {{put()}} performance is worse than a hash-based data structure like the JDK HashMap.
> This ticket is to investigate options for improving performance of the {{get()}} operation, since this can impact the performance of Filters and Lookups.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org