ConcurrentHashMap:
Guava ConcurrentHashMap:
Ehcache (LRU/eternal/heap only/max capacity set):
Guava Cache (initial/max capacity set):
Here are some samples with 16 threads:
ConcurrentHashMap:
- Overall average write time: 104ns
- Overall average read time: 98ns
Guava ConcurrentHashMap:
- Overall average write time: 56ns
- Overall average read time: 71ns
Ehcache (LRU/eternal/heap only/max capacity set):
- Overall average write time: 317ns
- Overall average read time: 262ns
Guava Cache (initial/max capacity set):
- Overall average write time: 571ns
- Overall average read time: 132ns
And a subset of the tests on the same box, but with 32 threads:
ConcurrentHashMap:
Overall average write time: 72ns
Overall average read time: 98ns
Guava ConcurrentHashMap:
Overall average write time: 37ns
Overall average read time: 62ns
And the same tests, but with 64 threads:
ConcurrentHashMap:
Overall average write time: 57ns
Overall average read time: 95ns
Guava ConcurrentHashMap:
Overall average write time: 27ns
Overall average read time: 57ns
And the same tests, but with 128 threads:
ConcurrentHashMap:
Overall average write time: 43ns
Overall average read time: 90ns
Guava ConcurrentHashMap:
Overall average write time: 37ns
Overall average read time: 50ns
--Matt
--MattTo view this discussion on the web visit https://groups.google.com/d/msgid/guava-discuss/5b7fa998-8203-4eed-b455-db93fe32e2d9%40googlegroups.com.
--
--
guava-...@googlegroups.com
Project site: http://guava-libraries.googlecode.com
This group: http://groups.google.com/group/guava-discuss
This list is for general discussion.
To report an issue: http://code.google.com/p/guava-libraries/issues/entry
To get help: http://stackoverflow.com/questions/ask?tags=guava
---
You received this message because you are subscribed to the Google Groups "guava-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guava-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
guava-...@googlegroups.com
Project site: http://guava-libraries.googlecode.com
This group: http://groups.google.com/group/guava-discuss
This list is for general discussion.
To report an issue: http://code.google.com/p/guava-libraries/issues/entry
To get help: http://stackoverflow.com/questions/ask?tags=guava
---
You received this message because you are subscribed to the Google Groups "guava-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guava-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/guava-discuss/bcd06c33-c2db-4d66-bc11-0cd1e4165abb%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/guava-discuss/CAHJY%3Dp5-U8CkD2KN5n4E1unkJeHT8gufkGChg50CCzqNewHX0g%40mail.gmail.com.