use of com.carrotsearch.junitbenchmarks.BenchmarkOptions in project mongomvcc by igd-geo.
the class MongoDBVDatabaseBenchmark method plainOldInsertDeleteInsertQuery.
/**
* Queries a lot of objects after inserting, deleting and inserting again
*/
@Test
@BenchmarkOptions(benchmarkRounds = 2, warmupRounds = 1)
public void plainOldInsertDeleteInsertQuery() {
plainOldInsertDeleteInsert();
_master.commit();
DBCollection coll = _db.getCollection("persons");
for (DBObject o : coll.find()) {
assertTrue(((Long) o.get("age")).longValue() >= DOCUMENTS);
}
}
use of com.carrotsearch.junitbenchmarks.BenchmarkOptions in project mongomvcc by igd-geo.
the class MongoDBVDatabaseBenchmark method plainOldInsertDelete.
/**
* Inserts a lot of documents using plain old MongoDB and then deletes them
*/
@Test
@BenchmarkOptions(benchmarkRounds = 2, warmupRounds = 1)
public void plainOldInsertDelete() {
plainOldInsert();
DBCollection coll = _db.getCollection("persons");
for (long i = 0; i < DOCUMENTS; ++i) {
coll.remove(new BasicDBObject("_id", 1 + i));
}
}
use of com.carrotsearch.junitbenchmarks.BenchmarkOptions in project mongomvcc by igd-geo.
the class MongoDBVDatabaseBenchmark method mvccInsertDelete.
/**
* Inserts a lot of documents using MongoMVCC and then deletes them
*/
@Test
@BenchmarkOptions(benchmarkRounds = 2, warmupRounds = 1)
public void mvccInsertDelete() {
mvccInsert();
VCollection coll = _master.getCollection("persons");
for (long i = 0; i < DOCUMENTS; ++i) {
coll.delete(1 + i);
}
}
use of com.carrotsearch.junitbenchmarks.BenchmarkOptions in project druid by druid-io.
the class BitmapBenchmark method timeOffheapConciseUnion.
@Test
@BenchmarkOptions(warmupRounds = 1, benchmarkRounds = 2)
public void timeOffheapConciseUnion() throws Exception {
ImmutableConciseSet union = ImmutableConciseSet.union(offheapConcise);
Assert.assertEquals(unionCount, union.size());
}
use of com.carrotsearch.junitbenchmarks.BenchmarkOptions in project druid by druid-io.
the class BitmapBenchmark method timeConciseUnion.
@Test
@BenchmarkOptions(warmupRounds = 1, benchmarkRounds = 2)
public void timeConciseUnion() throws Exception {
ImmutableConciseSet union = ImmutableConciseSet.union(concise);
Assert.assertEquals(unionCount, union.size());
}
Aggregations