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

Method setUp

benchmarks/src/main/java/org/questdb/LogBenchmark.java:57–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 @Setup(Level.Iteration)
58 public void setUp() {
59 factory = new LogFactory();
60 factory.add(new LogWriterConfig(LogLevel.INFO, (queue, subSeq, level) -> {
61 LogRollingFileWriter w = new LogRollingFileWriter(queue, subSeq, level);
62 w.setLocation("log-bench1.log");
63 return w;
64 }));
65 factory.bind();
66 factory.startThread();
67 log = factory.create(LogBenchmark.class);
68 }
69
70 @TearDown(Level.Iteration)
71 public void tearDown() {

Callers

nothing calls this directly

Calls 5

setLocationMethod · 0.95
addMethod · 0.65
createMethod · 0.65
bindMethod · 0.45
startThreadMethod · 0.45

Tested by

no test coverage detected