Skip to content

Commit

Permalink
increase limits in select-limit-order benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
seut committed Mar 31, 2015
1 parent 9b073a4 commit 736f070
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions sql/src/test/java/io/crate/benchmark/SelectLimitOrderBenchmark.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
@BenchmarkMethodChart(filePrefix = "benchmark-select-limit-order")
public class SelectLimitOrderBenchmark extends BenchmarkBase {

public static final int BENCHMARK_ROUNDS = 100;
public static final int NUMBER_OF_DOCUMENTS = 200_000;
public static final int BENCHMARK_ROUNDS = 10;
public static final int NUMBER_OF_DOCUMENTS = 1_200_000;
public static final String INDEX_NAME = "bench_select_limit_order";

private String[] generatedStrings;
Expand Down Expand Up @@ -155,42 +155,38 @@ protected void runSQLBenchmark(int numRequest, Integer limit, Integer offset, bo

@BenchmarkOptions(benchmarkRounds = BENCHMARK_ROUNDS, warmupRounds = 1)
@Test
public void benchLimit1000_ES() throws Exception {
Integer limit = 1000;
public void benchLimit1000000_ES() throws Exception {
Integer limit = 1_000_000;
Integer offset = 0;
boolean orderBy = false;
// run bench multiple times per round, otherwise resulting numbers are too small to compare
runESBenchmark(10, limit, offset, orderBy);
runESBenchmark(1, limit, offset, orderBy);
}

@BenchmarkOptions(benchmarkRounds = BENCHMARK_ROUNDS, warmupRounds = 1)
@Test
public void benchLimit1000_SQL() throws Exception {
Integer limit = 1000;
public void benchLimit1000000_SQL() throws Exception {
Integer limit = 1_000_000;
Integer offset = 0;
boolean orderBy = false;
// run bench multiple times per round, otherwise resulting numbers are too small to compare
runSQLBenchmark(10, limit, offset, orderBy);
runSQLBenchmark(1, limit, offset, orderBy);
}

@BenchmarkOptions(benchmarkRounds = BENCHMARK_ROUNDS, warmupRounds = 1)
@Test
public void benchLimit1000Order_ES() throws Exception {
Integer limit = 1000;
public void benchLimit1000000Order_ES() throws Exception {
Integer limit = 1_000_000;
Integer offset = 0;
boolean orderBy = true;
// run bench multiple times per round, otherwise resulting numbers are too small to compare
runESBenchmark(10, limit, offset, orderBy);
runESBenchmark(1, limit, offset, orderBy);
}

@BenchmarkOptions(benchmarkRounds = BENCHMARK_ROUNDS, warmupRounds = 1)
@Test
public void benchLimit1000Order_SQL() throws Exception {
Integer limit = 1000;
public void benchLimit1000000Order_SQL() throws Exception {
Integer limit = 1_000_000;
Integer offset = 0;
boolean orderBy = true;
// run bench multiple times per round, otherwise resulting numbers are too small to compare
runSQLBenchmark(10, limit, offset, orderBy);
runSQLBenchmark(1, limit, offset, orderBy);
}

@BenchmarkOptions(benchmarkRounds = BENCHMARK_ROUNDS, warmupRounds = 1)
Expand Down

0 comments on commit 736f070

Please sign in to comment.