[
https://issues.apache.org/jira/browse/DIRMINA-519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619454#action_12619454
]
Edouard De Oliveira commented on DIRMINA-519:
---------------------------------------------
Following are my tests results on a 2.1GHz Core 2 Duo. It seems that under
JDK1.5 on XP the LazyInitializedCacheMap performs significantly better.
Mark could you do a jdk1.5 test on your machine please ?
My tests results:
WinXP 1.5.0_11-b03 options -Xmx512m
Started...
Map type: LazyInitializedCacheMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 466187.36666666664
Started...
Map type: HashMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 165805.88333333333
Started...
Map type: ConcurrentHashMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 144387.43333333332
------------------------------------------------
WinXP 1.6.0_01-b06 options -Xmx512m -server
Started...
Map type: LazyInitializedCacheMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 632299.45
Started...
Map type: HashMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 534555.5666666667
Started...
Map type: ConcurrentHashMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 177202.66666666666
------------------------------------------------
WinXP 1.6.0_01-b06 options -Xmx512m
Started...
Map type: LazyInitializedCacheMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 494747.06666666665
Started...
Map type: HashMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 412600.9666666667
Started...
Map type: ConcurrentHashMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 150455.65
------------------------------------------------
Allocating a 32k buffer instead of a 8k one
WinXP 1.6.0_01-b06 options -Xmx512m -server
Started...
Map type: LazyInitializedCacheMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 105764.7
Started...
Map type: HashMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 100448.58333333333
------------------------------------------------
Allocating a 32k buffer instead of a 8k one
WinXP 1.5.0_11-b03 options -Xmx512m
Started...
Map type: LazyInitializedCacheMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 141899.01666666666
Started...
Map type: HashMap
Runtime: 60000
Number of threads: 3
Remove probability: 0.1
Ops per second: 90772.15
> BufferingFilter
> ---------------
>
> Key: DIRMINA-519
> URL: https://issues.apache.org/jira/browse/DIRMINA-519
> Project: MINA
> Issue Type: New Feature
> Components: Filter
> Reporter: Trustin Lee
> Assignee: Edouard De Oliveira
> Priority: Minor
> Fix For: 2.0.0-M3
>
> Attachments: test.rar
>
>
> As JDK provides BufferedOutputStream, we could provide BufferingFilteer which
> does the same thing, which buffers encoded data and flushes it out when the
> buffer becomes full or the flush operation is explicitly requested. This
> kind of filter is sometimes useful when a session is generating very small
> messages too frequently and consequently generates unnecessary traffic
> overhead.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.