Search in sources :

Example 1 with IntValue

use of org.apache.ignite.internal.benchmarks.model.IntValue in project ignite by apache.

the class JmhWaitStategyBenchmark method put.

/**
     * Test PUT operation.
     *
     * @throws Exception If failed.
     */
@Benchmark
public void put() throws Exception {
    int key = ThreadLocalRandom.current().nextInt(CNT);
    cache.put(key, new IntValue(key));
}
Also used : IntValue(org.apache.ignite.internal.benchmarks.model.IntValue) JmhCacheAbstractBenchmark(org.apache.ignite.internal.benchmarks.jmh.cache.JmhCacheAbstractBenchmark) Benchmark(org.openjdk.jmh.annotations.Benchmark)

Example 2 with IntValue

use of org.apache.ignite.internal.benchmarks.model.IntValue in project ignite by apache.

the class JmhCacheBenchmark method put.

/**
     * Test PUT operation.
     *
     * @throws Exception If failed.
     */
@Benchmark
public void put() throws Exception {
    int key = ThreadLocalRandom.current().nextInt(CNT);
    cache.put(key, new IntValue(key));
}
Also used : IntValue(org.apache.ignite.internal.benchmarks.model.IntValue) Benchmark(org.openjdk.jmh.annotations.Benchmark)

Aggregations

IntValue (org.apache.ignite.internal.benchmarks.model.IntValue)2 Benchmark (org.openjdk.jmh.annotations.Benchmark)2 JmhCacheAbstractBenchmark (org.apache.ignite.internal.benchmarks.jmh.cache.JmhCacheAbstractBenchmark)1