Searched refs:hitRate (Results 1 – 8 of 8) sorted by relevance
/external/guava/guava-tests/test/com/google/common/collect/ |
D | CollectionBenchmarkSampleData.java | 35 private final double hitRate; field in CollectionBenchmarkSampleData 48 double hitRate, in CollectionBenchmarkSampleData() argument 52 this.hitRate = hitRate; in CollectionBenchmarkSampleData() 70 int numGoodQueries = (int) (numQueries * hitRate + 0.5); in createQueries()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheStatsTest.java | 32 assertEquals(1.0, stats.hitRate()); in testEmpty() 48 assertEquals(11.0/24, stats.hitRate()); in testSingle() 67 assertEquals(42.0/76, diff.hitRate()); in testMinus() 88 assertEquals(64.0/124, sum.hitRate()); in testPlus()
|
D | LocalLoadingCacheTest.java | 89 assertEquals(0.0, stats.hitRate()); in testStats() 102 assertEquals(1.0/2, stats.hitRate()); in testStats() 113 assertEquals(1.0/3, stats.hitRate()); in testStats() 127 assertEquals(1.0/4, stats.hitRate()); in testStats()
|
D | AbstractCacheTest.java | 105 assertEquals(1.0, stats.hitRate()); in testEmptySimpleStats() 137 assertEquals(11.0 / requestCount, stats.hitRate()); in testSingleSimpleStats()
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
D | SetContainsBenchmark.java | 41 private double hitRate; field in SetContainsBenchmark 60 isUserTypeFast, random, hitRate, size); in setUp()
|
D | MapBenchmark.java | 160 private double hitRate; field in MapBenchmark 181 isUserTypeFast, random, hitRate, size); in setUp()
|
/external/guava/guava/src/com/google/common/cache/ |
D | CacheStats.java | 115 public double hitRate() { in hitRate() method in CacheStats
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
D | EnumsBenchmark.java | 33 float hitRate; field in EnumsBenchmark 41 Preconditions.checkArgument(hitRate >= 0 && hitRate <= 1, in setUp() 49 for (int i = 0; i < hitRate * 256 / 3; ++i) { in setUp()
|