Home
last modified time | relevance | path

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

/trafficserver/iocore/cache/
H A DCacheTest.cc591 int sample_size = cache_size >> 6; in test_RamCache() local
594 int *r = static_cast<int *>(ats_malloc(sample_size * sizeof(int))); in test_RamCache()
595 for (int i = 0; i < sample_size; i++) { in test_RamCache()
601 for (int i = 0; i < sample_size; i++) { in test_RamCache()
611 if (i >= sample_size / 2) { in test_RamCache()
616 double fixed_hit_rate = 1.0 - ((static_cast<double>(misses)) / (sample_size / 2)); in test_RamCache()
621 for (int i = 0; i < sample_size; i++) { in test_RamCache()
631 if (i >= sample_size / 2) { in test_RamCache()
636 double variable_hit_rate = 1.0 - ((static_cast<double>(misses)) / (sample_size / 2)); in test_RamCache()

Completed in 3 milliseconds