Search in sources :

Example 16 with TestConfig

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

the class NoopBenchmark method configure.

@Override
public TestConfig configure() {
    TestConfig config = ClientServerBenchmark.createConfig();
    workload(config, new NoopTask(), CLIENT);
    return config;
}
Also used : TestConfig(org.apache.geode.perftest.TestConfig) NoopTask(org.apache.geode.benchmark.tasks.NoopTask)

Example 17 with TestConfig

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

the class P2pBenchmark method createConfig.

public static TestConfig createConfig() {
    TestConfig config = GeodeBenchmark.createConfig();
    P2pTopology.configure(config);
    return config;
}
Also used : TestConfig(org.apache.geode.perftest.TestConfig)

Example 18 with TestConfig

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

the class P2pPartitionedGetBenchmark method configure.

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

Example 19 with TestConfig

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

the class P2pPartitionedPutBytesBenchmark method configure.

@Override
public TestConfig configure() {
    TestConfig config = P2pBenchmark.createConfig();
    before(config, new CreatePartitionedRegion(), SERVER);
    before(config, new PrePopulateRegionBytes(keyRange, SERVER), SERVER);
    workload(config, new PutBytesTask(keyRange), SERVER);
    return config;
}
Also used : CreatePartitionedRegion(org.apache.geode.benchmark.tasks.CreatePartitionedRegion) TestConfig(org.apache.geode.perftest.TestConfig) PrePopulateRegionBytes(org.apache.geode.benchmark.tasks.PrePopulateRegionBytes) PutBytesTask(org.apache.geode.benchmark.tasks.PutBytesTask)

Example 20 with TestConfig

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

the class P2pPartitionedPutLongBenchmark method configure.

@Override
public TestConfig configure() {
    TestConfig config = P2pBenchmark.createConfig();
    before(config, new CreatePartitionedRegion(), SERVER);
    before(config, new PrePopulateRegionLong(keyRange, SERVER), SERVER);
    workload(config, new PutLongTask(keyRange), SERVER);
    return config;
}
Also used : CreatePartitionedRegion(org.apache.geode.benchmark.tasks.CreatePartitionedRegion) PutLongTask(org.apache.geode.benchmark.tasks.PutLongTask) TestConfig(org.apache.geode.perftest.TestConfig) PrePopulateRegionLong(org.apache.geode.benchmark.tasks.PrePopulateRegionLong)

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