Search in sources :

Example 1 with TestConfig

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

the class ReplicatedFunctionExecutionWithFiltersBenchmark method configure.

@Override
public TestConfig configure() {
    TestConfig config = super.configure();
    config.threads(Runtime.getRuntime().availableProcessors() * 10);
    workload(config, new ExecuteFilteredFunction(getKeyRange()), CLIENT);
    return config;
}
Also used : TestConfig(org.apache.geode.perftest.TestConfig) ExecuteFilteredFunction(org.apache.geode.benchmark.tasks.ExecuteFilteredFunction)

Example 2 with TestConfig

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

the class ReplicatedGetBenchmark method configure.

@Override
public TestConfig configure() {
    TestConfig config = ClientServerBenchmark.createConfig();
    before(config, new CreateReplicatedRegion(), SERVER);
    before(config, new CreateClientProxyRegion(), CLIENT);
    before(config, new PrePopulateRegion(keyRange), CLIENT);
    workload(config, new GetTask(keyRange), CLIENT);
    return config;
}
Also used : 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) CreateReplicatedRegion(org.apache.geode.benchmark.tasks.CreateReplicatedRegion)

Example 3 with TestConfig

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

the class ReplicatedIndexedQueryBenchmark method configure.

@Override
public TestConfig configure() {
    TestConfig config = ClientServerBenchmark.createConfig();
    config.threads(Runtime.getRuntime().availableProcessors() * 8);
    before(config, new CreateReplicatedRegion(), 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 : 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) CreateReplicatedRegion(org.apache.geode.benchmark.tasks.CreateReplicatedRegion)

Example 4 with TestConfig

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

the class ReplicatedNonIndexedQueryBenchmark method configure.

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

Example 5 with TestConfig

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

the class ReplicatedPutAllLongBenchmark method configure.

@Override
public TestConfig configure() {
    TestConfig config = ClientServerBenchmark.createConfig();
    config.threads(Runtime.getRuntime().availableProcessors() * 2);
    before(config, new CreateReplicatedRegion(), SERVER);
    before(config, new CreateClientProxyRegion(), CLIENT);
    before(config, new PrePopulateRegionLong(keyRange), CLIENT);
    workload(config, new PutAllTask(keyRange, batchSize), CLIENT);
    return config;
}
Also used : TestConfig(org.apache.geode.perftest.TestConfig) CreateClientProxyRegion(org.apache.geode.benchmark.tasks.CreateClientProxyRegion) PrePopulateRegionLong(org.apache.geode.benchmark.tasks.PrePopulateRegionLong) PutAllTask(org.apache.geode.benchmark.tasks.PutAllTask) CreateReplicatedRegion(org.apache.geode.benchmark.tasks.CreateReplicatedRegion)

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