Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfran committed Oct 8, 2023
1 parent 1a6b046 commit d90b6b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ tasks.test {
}

jmh {
// includes = ['LSMTreeBenchmark.add']
fork = 1
warmupIterations = 5
iterations = 10
Expand Down
3 changes: 2 additions & 1 deletion src/jmh/java/com/tomfran/lsm/tree/LSMTreeBenchmark.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class LSMTreeBenchmark {

static final Path DIR = Path.of("tree_benchmark");
static final int NUM_ITEMS = 300000;
static final int MEMTABLE_SIZE = 1 << 16;

static ByteArrayPair[] items;
static int index = 0;
Expand All @@ -35,7 +36,7 @@ public void setup() throws IOException {
items[i] = getRandomPair();

// setup tree
tree = new LSMTree(1 << 15, DIR.toString());
tree = new LSMTree(MEMTABLE_SIZE, DIR.toString());
}

@TearDown
Expand Down

0 comments on commit d90b6b8

Please sign in to comment.