MCPcopy Create free account
hub / github.com/questdb/questdb / testBench

Method testBench

core/src/test/java/io/questdb/test/cairo/o3/O3Test.java:212–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210 }
211
212 @Test
213 public void testBench() throws Exception {
214 // On OSX, it's not trivial to increase the open file limit per process
215 Assume.assumeFalse(Os.isOSX());
216
217 switch (rnd.nextInt(3)) {
218 case 0:
219 LOG.info().$("executing vanilla bench").$();
220 executeVanilla((engine, compiler, context) -> testBench0(engine, compiler, context, timestampType.getTypeName()));
221 break;
222 case 1:
223 LOG.info().$("executing contended bench").$();
224 executeWithPool(0, O3Test::testBench0);
225 break;
226 case 2:
227 LOG.info().$("executing parallel bench").$();
228 executeWithPool(4, O3Test::testBench0);
229 break;
230 default:
231 throw new UnsupportedOperationException();
232 }
233 }
234
235 @Test
236 public void testColumnTopLastAppend() throws Exception {

Callers

nothing calls this directly

Calls 8

isOSXMethod · 0.95
testBench0Method · 0.95
nextIntMethod · 0.80
$Method · 0.65
infoMethod · 0.65
getTypeNameMethod · 0.65
executeVanillaMethod · 0.45
executeWithPoolMethod · 0.45

Tested by

no test coverage detected