Lines Matching refs:length
46 static int NextLength(int length) { in NextLength() argument
47 if (length < 10) { in NextLength()
48 length += 1; in NextLength()
49 } else if (length < 100) { in NextLength()
50 length += 10; in NextLength()
51 } else if (length < 1000) { in NextLength()
52 length += 100; in NextLength()
54 length += 1000; in NextLength()
56 return length; in NextLength()
154 for (int length = 1; length <= 10000; length = NextLength(length)) { in TEST_F() local
156 for (int i = 0; i < length; i++) { in TEST_F()
161 ASSERT_LE(FilterSize(), (size_t)((length * 10 / 8) + 40)) << length; in TEST_F()
164 for (int i = 0; i < length; i++) { in TEST_F()
166 << "Length " << length << "; key " << i; in TEST_F()
173 rate*100.0, length, static_cast<int>(FilterSize())); in TEST_F()
467 for (int length = 1; length <= 10000; length = NextLength(length)) { in TEST_P() local
469 for (int i = 0; i < length; i++) { in TEST_P()
475 (size_t)((length * 10 / 8) + CACHE_LINE_SIZE * 2 + 5)); in TEST_P()
478 for (int i = 0; i < length; i++) { in TEST_P()
480 << "Length " << length << "; key " << i; in TEST_P()
487 rate*100.0, length, static_cast<int>(FilterSize())); in TEST_P()