We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 654f0a6 commit 6273aa9Copy full SHA for 6273aa9
lucene/benchmark-jmh/src/java/org/apache/lucene/benchmark/jmh/BKDCodecBenchmark.java
@@ -100,8 +100,12 @@ public void tearDownTrial() throws IOException {
100
IOUtils.close(legacyIn, vectorIn, dir);
101
}
102
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
+ */
107
private static int count(int iter) {
- // to make benchmark more realistic
108
+ // return 512;
109
return iter % 20 == 0 ? 511 : SIZE;
110
111
0 commit comments