@After public void tearDown() { reporter.stop(); reporter.report(); executor.shutdownNow(); }
private void test(DataSource dataSource) throws SQLException { for (int i = 0; i < callCount; i++) { long startNanos = System.nanoTime(); try (Connection connection = dataSource.getConnection()) {} timer.update(System.nanoTime() - startNanos, TimeUnit.NANOSECONDS); } logReporter.report(); }