Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
gf2121 committed Feb 8, 2025
1 parent 654f0a6 commit 6273aa9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,12 @@ public void tearDownTrial() throws IOException {
IOUtils.close(legacyIn, vectorIn, dir);
}

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

Expand Down

0 comments on commit 6273aa9

Please sign in to comment.