Search in sources :

Example 16 with Benchmark

use of com.cinchapi.common.profile.Benchmark in project concourse by cinchapi.

the class CrossVersionReadStrategyBenchmarkTest method testSelectDiffKeyFromSortKey.

@Test
public void testSelectDiffKeyFromSortKey() {
    Benchmark benchmark = new Benchmark(TimeUnit.MILLISECONDS) {

        @Override
        public void action() {
            client.select(Lists.newArrayList("name", "c"), client.inventory(), Order.by("count"));
        }
    };
    double avg = benchmark.run(1);
    record("testSelectDiffKeyFromSortKey", avg);
}
Also used : Benchmark(com.cinchapi.common.profile.Benchmark) Test(org.junit.Test)

Example 17 with Benchmark

use of com.cinchapi.common.profile.Benchmark in project concourse by cinchapi.

the class CrossVersionReadStrategyBenchmarkTest method testSelectManyKeysSortKey.

@Test
public void testSelectManyKeysSortKey() {
    Benchmark benchmark = new Benchmark(TimeUnit.MILLISECONDS) {

        @Override
        public void action() {
            client.select(Lists.newArrayList("count", "foo", "c"), client.inventory(), Order.by("count"));
        }
    };
    double avg = benchmark.run(1);
    record("testSelectManyKeysSortKey", avg);
}
Also used : Benchmark(com.cinchapi.common.profile.Benchmark) Test(org.junit.Test)

Example 18 with Benchmark

use of com.cinchapi.common.profile.Benchmark in project concourse by cinchapi.

the class CrossVersionReadStrategyBenchmarkTest method testSelectAllKeysSortKey.

@Test
public void testSelectAllKeysSortKey() {
    Benchmark benchmark = new Benchmark(TimeUnit.MILLISECONDS) {

        @Override
        public void action() {
            client.select(client.inventory(), Order.by("count"));
        }
    };
    double avg = benchmark.run(1);
    record("testSelectAllKeysSortKey", avg);
}
Also used : Benchmark(com.cinchapi.common.profile.Benchmark) Test(org.junit.Test)

Example 19 with Benchmark

use of com.cinchapi.common.profile.Benchmark in project concourse by cinchapi.

the class CrossVersionSearchBenchmarkTest method testWarmSearchPerformance.

@Test
public void testWarmSearchPerformance() {
    Benchmark benchmark = new Benchmark(TimeUnit.MILLISECONDS) {

        @Override
        public void action() {
            client.search(key, query);
        }
    };
    double avg = benchmark.average(10);
    record("warm", avg);
}
Also used : Benchmark(com.cinchapi.common.profile.Benchmark) Test(org.junit.Test)

Example 20 with Benchmark

use of com.cinchapi.common.profile.Benchmark in project concourse by cinchapi.

the class CrossVersionSelectMultipleNavigationKeysBenchmarkTest method testSelectNavigationKeys.

@Test
public void testSelectNavigationKeys() {
    Benchmark benchmark = new Benchmark(TimeUnit.MILLISECONDS) {

        @Override
        public void action() {
            client.select(keys, records);
        }
    };
    long elapsed = benchmark.run();
    record("select", elapsed);
}
Also used : Benchmark(com.cinchapi.common.profile.Benchmark) Test(org.junit.Test)

Aggregations

Benchmark (com.cinchapi.common.profile.Benchmark)23 Test (org.junit.Test)23 AtomicSupport (com.cinchapi.concourse.server.storage.AtomicSupport)4 TObject (com.cinchapi.concourse.thrift.TObject)2 CountUpLatch (com.cinchapi.common.concurrent.CountUpLatch)1 CsvImporter (com.cinchapi.concourse.importer.CsvImporter)1 Importer (com.cinchapi.concourse.importer.Importer)1 Value (com.cinchapi.concourse.server.model.Value)1 LazyTrackingTObjectResultDataset (com.cinchapi.concourse.server.plugin.data.LazyTrackingTObjectResultDataset)1 StoreTest (com.cinchapi.concourse.server.storage.StoreTest)1 ClientServerTest (com.cinchapi.concourse.test.ClientServerTest)1 ConcourseBaseTest (com.cinchapi.concourse.test.ConcourseBaseTest)1 Random (com.cinchapi.concourse.util.Random)1 AtomicDouble (com.google.common.util.concurrent.AtomicDouble)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 ByteBuffer (java.nio.ByteBuffer)1 Path (java.nio.file.Path)1 Map (java.util.Map)1 Set (java.util.Set)1 CountDownLatch (java.util.concurrent.CountDownLatch)1