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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations