[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3049?page=c...
]
Gail Badner updated HHH-3049:
-----------------------------
Attachment: ConcurrentMapAccessPerformanceTest.java
I'm attaching an updated version of Paul Cowen's performance test that makes the
corrections mentioned in Paul's 16/Nov/07 comment.
In addition, I've made the following changes to the test:
- removed the static EntityMode class and use org.hibernate.EntityMode instead
- changed the static mapping class to extend
org.hibernate.tuple.EntityModeToTuplizerMapping
- the "default" run uses the EntityModeToTuplizerMapping constructor with no
arguments (which will use a org.hibernate.util.FastHashMap() after the HHH-2645 fix)
- the non-default runs uses the new EntityModeToTuplizerMapping constructor that takes a
Map argument
- added a test for Collections.synchronizedMap( new java.util.LinkedHashMap() ), since it
was the Map implementation used by trunk before HHH-2645 fix
Add the performance test attached to HHH-2645 to test suite
-----------------------------------------------------------
Key: HHH-3049
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3049
Project: Hibernate3
Issue Type: Improvement
Components: testsuite
Reporter: Gail Badner
Assignee: Gail Badner
Fix For: 3.3
Attachments: ConcurrentMapAccessPerformanceTest.java
The performance test attached to HHH-2645 compares the following Map implementations used
by org.hibernate.tuple.EntityModeToTuplizerMapping.:
Collections.synchronizedMap( new org.apache.commons.collections.SequencedHashMap() )
<= used in pre-3.2.6
org.apache.commons.collections.FastHashMap()
org.hibernate.util.FastHashMap <= used in 3.2.6
java.util.concurrent.ConcurrentHashMap() <= need Java 1.5 for this
new EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap()
EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap()
This test should be added to the test suite as an integration test.
Reminder: Read Paul Cowan's comment from 16/Nov/07 for corrections to the attached
test.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira