All tests will be successfull 50% of the time, the other 50% will not be successfull, since theMaps is pre-initialized for each test with keys/values 0-500, and the tests are runned withkeys/values 0-1000.The keys are Strings, while the values are integers.
This page presents the results of executing a performance test of FKache 1.0-beta6 versus java.util.HashMap. The tests was performed on Sep 20, 2004 11:21:13 PM. The tests was runned on Java(TM) 2 Runtime Environment, Standard Edition version 1.4.2_05-b04 by Sun Microsystems Inc.. The operating system was Windows XP. The amount of available memory to the VM was 63Mb.
method | Number of repeats | HashMap | FKache |
---|---|---|---|
isEmpty() | 94,000,000 | 100.0% | 198% |
size() | 94,000,000 | 100.0% | 240% |
hashCode() | 32,000 | 100.0% | 0% |
containsValue(Object) | 64,000 | 100.0% | 240% |
containsKey(Object) | 16,000,000 | 100.0% | 193% |
get(Object) | 16,200,000 | 100.0% | 342% |
values() | 94,000,000 | 100.0% | 267% |
equals(Object) | 32,000,000 | 100.0% | 54% |
entrySet() | 94,000,000 | 100.0% | 261% |
clear() | 180,000 | 100.0% | 1708% |
putAll(Map) | 8,000 | 100.0% | 364% |
remove(Object) | 14,000,000 | 100.0% | 194% |
put(Object, Object) | 8,100,000 | 100.0% | 827% |
keySet() | 94,000,000 | 100.0% | 263% |