Skip to content

Commit 6273aa9

Browse files
committed
iter
1 parent 654f0a6 commit 6273aa9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lucene/benchmark-jmh/src/java/org/apache/lucene/benchmark/jmh/BKDCodecBenchmark.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,12 @@ public void tearDownTrial() throws IOException {
100100
IOUtils.close(legacyIn, vectorIn, dir);
101101
}
102102

103+
/**
104+
* It is important to make count variable, like what will happen in real BKD leaves. If this
105+
* method constantly return 512, {@link #current} will run as fast as {@link #currentVector}.
106+
*/
103107
private static int count(int iter) {
104-
// to make benchmark more realistic
108+
// return 512;
105109
return iter % 20 == 0 ? 511 : SIZE;
106110
}
107111

0 commit comments

Comments
 (0)