Search in sources :

Example 6 with TestConfig

use of org.apache.geode.perftest.TestConfig in project geode-benchmarks by apache.

the class ReplicatedPutLongBenchmark method configure.

@Override
public TestConfig configure() {
    TestConfig config = ClientServerBenchmark.createConfig();
    before(config, new CreateReplicatedRegion(), SERVER);
    before(config, new CreateClientProxyRegion(), CLIENT);
    before(config, new PrePopulateRegionLong(keyRange), CLIENT);
    workload(config, new PutTask(keyRange), CLIENT);
    return config;
}
Also used : TestConfig(org.apache.geode.perftest.TestConfig) PutTask(org.apache.geode.benchmark.tasks.PutTask) CreateClientProxyRegion(org.apache.geode.benchmark.tasks.CreateClientProxyRegion) PrePopulateRegionLong(org.apache.geode.benchmark.tasks.PrePopulateRegionLong) CreateReplicatedRegion(org.apache.geode.benchmark.tasks.CreateReplicatedRegion)

Example 7 with TestConfig

use of org.apache.geode.perftest.TestConfig in project geode-benchmarks by apache.

the class GcParametersTest method withZinJava8.

@Test
public void withZinJava8() {
    System.setProperty(WITH_GC, "Z");
    System.setProperty(JAVA_RUNTIME_VERSION, "1.8.0_212-b03");
    final TestConfig testConfig = new TestConfig();
    assertThatThrownBy(() -> GcParameters.configure(testConfig)).isInstanceOf(IllegalArgumentException.class);
}
Also used : TestConfig(org.apache.geode.perftest.TestConfig) Test(org.junit.jupiter.api.Test)

Example 8 with TestConfig

use of org.apache.geode.perftest.TestConfig in project geode-benchmarks by apache.

the class HeapParametersTest method with16g.

@Test
public void with16g() {
    System.setProperty(WITH_HEAP, "16g");
    final TestConfig testConfig = new TestConfig();
    HeapParameters.configure(testConfig);
    assertHeap(testConfig, "16g");
}
Also used : TestConfig(org.apache.geode.perftest.TestConfig) Test(org.junit.jupiter.api.Test)

Example 9 with TestConfig

use of org.apache.geode.perftest.TestConfig in project geode-benchmarks by apache.

the class PartitionedGetBenchmark method configure.

@Override
public TestConfig configure() {
    TestConfig config = ClientServerBenchmark.createConfig();
    before(config, new CreatePartitionedRegion(), SERVER);
    before(config, new CreateClientProxyRegion(), CLIENT);
    before(config, new PrePopulateRegion(keyRange), CLIENT);
    workload(config, new GetTask(keyRange), CLIENT);
    return config;
}
Also used : CreatePartitionedRegion(org.apache.geode.benchmark.tasks.CreatePartitionedRegion) TestConfig(org.apache.geode.perftest.TestConfig) GetTask(org.apache.geode.benchmark.tasks.GetTask) CreateClientProxyRegion(org.apache.geode.benchmark.tasks.CreateClientProxyRegion) PrePopulateRegion(org.apache.geode.benchmark.tasks.PrePopulateRegion)

Example 10 with TestConfig

use of org.apache.geode.perftest.TestConfig in project geode-benchmarks by apache.

the class PartitionedIndexedQueryBenchmark method configure.

@Override
public TestConfig configure() {
    TestConfig config = ClientServerBenchmark.createConfig();
    config.threads(Runtime.getRuntime().availableProcessors() * 8);
    before(config, new CreatePartitionedRegion(), SERVER);
    before(config, new CreateClientProxyRegion(), CLIENT);
    before(config, new CreateIndexOnID(), SERVER);
    before(config, new PrePopulateRegion(keyRange), CLIENT);
    workload(config, new OQLQuery(keyRange, queryRange), CLIENT);
    return config;
}
Also used : CreatePartitionedRegion(org.apache.geode.benchmark.tasks.CreatePartitionedRegion) TestConfig(org.apache.geode.perftest.TestConfig) CreateClientProxyRegion(org.apache.geode.benchmark.tasks.CreateClientProxyRegion) CreateIndexOnID(org.apache.geode.benchmark.tasks.CreateIndexOnID) OQLQuery(org.apache.geode.benchmark.tasks.OQLQuery) PrePopulateRegion(org.apache.geode.benchmark.tasks.PrePopulateRegion)

Aggregations

TestConfig (org.apache.geode.perftest.TestConfig)50 CreateClientProxyRegion (org.apache.geode.benchmark.tasks.CreateClientProxyRegion)18 Test (org.junit.jupiter.api.Test)16 CreatePartitionedRegion (org.apache.geode.benchmark.tasks.CreatePartitionedRegion)13 PrePopulateRegion (org.apache.geode.benchmark.tasks.PrePopulateRegion)13 CreateReplicatedRegion (org.apache.geode.benchmark.tasks.CreateReplicatedRegion)8 PrePopulateRegionLong (org.apache.geode.benchmark.tasks.PrePopulateRegionLong)7 GetTask (org.apache.geode.benchmark.tasks.GetTask)5 OQLQuery (org.apache.geode.benchmark.tasks.OQLQuery)4 PutAllTask (org.apache.geode.benchmark.tasks.PutAllTask)4 PutTask (org.apache.geode.benchmark.tasks.PutTask)4 CreateIndexOnID (org.apache.geode.benchmark.tasks.CreateIndexOnID)2 ExecuteFilteredFunction (org.apache.geode.benchmark.tasks.ExecuteFilteredFunction)2 ExecuteFunction (org.apache.geode.benchmark.tasks.ExecuteFunction)2 ExecuteParameterizedFunction (org.apache.geode.benchmark.tasks.ExecuteParameterizedFunction)2 PrePopulateRegionBytes (org.apache.geode.benchmark.tasks.PrePopulateRegionBytes)2 PutBytesTask (org.apache.geode.benchmark.tasks.PutBytesTask)2 PutLongTask (org.apache.geode.benchmark.tasks.PutLongTask)2 BenchmarkFunction (benchmark.geode.data.BenchmarkFunction)1 Properties (java.util.Properties)1