Home
last modified time | relevance | path

Searched refs:hitRate (Results 1 – 8 of 8) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
DCollectionBenchmarkSampleData.java35 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/
DCacheStatsTest.java32 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()
DLocalLoadingCacheTest.java89 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()
DAbstractCacheTest.java105 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/
DSetContainsBenchmark.java41 private double hitRate; field in SetContainsBenchmark
60 isUserTypeFast, random, hitRate, size); in setUp()
DMapBenchmark.java160 private double hitRate; field in MapBenchmark
181 isUserTypeFast, random, hitRate, size); in setUp()
/external/guava/guava/src/com/google/common/cache/
DCacheStats.java115 public double hitRate() { in hitRate() method in CacheStats
/external/guava/guava-tests/benchmark/com/google/common/base/
DEnumsBenchmark.java33 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()