Skip to content
Permalink
Browse files
Add key range support to more benchmarks.
  • Loading branch information
pivotal-jbarrett committed Jun 16, 2021
1 parent 0641147 commit 4bb07d41105f1a9bc460a22da5ca514406c1ab33
Showing 4 changed files with 20 additions and 4 deletions.
@@ -18,8 +18,11 @@
package org.apache.geode.benchmark.tests;


import static java.lang.Long.getLong;
import static org.apache.geode.benchmark.Config.before;
import static org.apache.geode.benchmark.Config.workload;
import static org.apache.geode.benchmark.tests.GeodeBenchmark.WITH_MAX_KEY;
import static org.apache.geode.benchmark.tests.GeodeBenchmark.WITH_MIN_KEY;
import static org.apache.geode.benchmark.topology.Roles.SERVER;

import org.junit.jupiter.api.Test;
@@ -36,7 +39,8 @@
*/
public class P2pPartitionedGetBenchmark extends AbstractPerformanceTest {

private LongRange keyRange = new LongRange(0, 1000000);
private LongRange keyRange =
new LongRange(getLong(WITH_MIN_KEY, 0), getLong(WITH_MAX_KEY, 1_000_000));

@Test
public void run() throws Exception {
@@ -17,8 +17,11 @@

package org.apache.geode.benchmark.tests;

import static java.lang.Long.getLong;
import static org.apache.geode.benchmark.Config.before;
import static org.apache.geode.benchmark.Config.workload;
import static org.apache.geode.benchmark.tests.GeodeBenchmark.WITH_MAX_KEY;
import static org.apache.geode.benchmark.tests.GeodeBenchmark.WITH_MIN_KEY;
import static org.apache.geode.benchmark.topology.Roles.SERVER;

import org.junit.jupiter.api.Test;
@@ -35,7 +38,8 @@
*/
public class P2pPartitionedPutBenchmark extends AbstractPerformanceTest {

private LongRange keyRange = new LongRange(0, 1_000_000);
private LongRange keyRange =
new LongRange(getLong(WITH_MIN_KEY, 0), getLong(WITH_MAX_KEY, 1_000_000));

public P2pPartitionedPutBenchmark() {}

@@ -17,8 +17,11 @@

package org.apache.geode.benchmark.tests;

import static java.lang.Long.getLong;
import static org.apache.geode.benchmark.Config.before;
import static org.apache.geode.benchmark.Config.workload;
import static org.apache.geode.benchmark.tests.GeodeBenchmark.WITH_MAX_KEY;
import static org.apache.geode.benchmark.tests.GeodeBenchmark.WITH_MIN_KEY;
import static org.apache.geode.benchmark.topology.Roles.SERVER;

import org.junit.jupiter.api.Test;
@@ -35,7 +38,8 @@
*/
public class P2pPartitionedPutBytesBenchmark extends AbstractPerformanceTest {

private LongRange keyRange = new LongRange(0, 1000000);
private LongRange keyRange =
new LongRange(getLong(WITH_MIN_KEY, 0), getLong(WITH_MAX_KEY, 1_000_000));

public P2pPartitionedPutBytesBenchmark() {}

@@ -17,8 +17,11 @@

package org.apache.geode.benchmark.tests;

import static java.lang.Long.getLong;
import static org.apache.geode.benchmark.Config.before;
import static org.apache.geode.benchmark.Config.workload;
import static org.apache.geode.benchmark.tests.GeodeBenchmark.WITH_MAX_KEY;
import static org.apache.geode.benchmark.tests.GeodeBenchmark.WITH_MIN_KEY;
import static org.apache.geode.benchmark.topology.Roles.SERVER;

import org.junit.jupiter.api.Test;
@@ -35,7 +38,8 @@
*/
public class P2pPartitionedPutLongBenchmark extends AbstractPerformanceTest {

private LongRange keyRange = new LongRange(0, 1000000);
private LongRange keyRange =
new LongRange(getLong(WITH_MIN_KEY, 0), getLong(WITH_MAX_KEY, 1_000_000));

public P2pPartitionedPutLongBenchmark() {}

0 comments on commit 4bb07d4

Please sign in to comment.