| 42 | |
| 43 | I was surprised that the guava multi cache performance was so poor, so I decided to try a more recent version of Java. The following plots show the exact same calculation, but with Java 7. It is immediately apparent that guava cache performance is very sensitive to Java version, and performs much better with Java 7. Additionally, even the single cache case sped up. I recommend we use Java 7 for all calculations. |
| 44 | |
| 45 | ||= '''Distance Test''' =||= '''Hazard Test''' =|| |
| 46 | ||[[Image(direct_2_java7_results.png)]]||[[Image(hazard_2_java7_results.png)]]|| |
| 47 | ||distance test, Java 7, multi cache with expiration||hazard test, Java 7, multi cache with expiration|| |
| 48 | |
| 49 | == Performance of Expiration Time == |
| 50 | |
| 51 | I then ran the same Java 7 test as before, but with the multi cache expiration time disabled. Results are below. |
| 52 | |
| 53 | ||= '''Distance Test''' =||= '''Hazard Test''' =|| |
| 54 | ||[[Image(direct_3_java7_no_exp_results.png)]]||[[Image(hazard_3_java7_no_exp_results.png)]]|| |
| 55 | ||distance test, Java 7, multi cache without expiration||hazard test, Java 7, multi cache without expiration|| |