steffenvan commented on code in PR #1629: URL: https://github.com/apache/jackrabbit-oak/pull/1629#discussion_r1709476583
########## oak-run/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/LuceneIndexer.java: ########## @@ -100,9 +132,29 @@ public Set<String> getRelativeIndexedNodeNames() { @Override public void close() throws IOException { + LOG.info("Statistics: {}", formatStats()); + binaryTextExtractor.logStats(); indexWriter.close(System.currentTimeMillis()); } + public String formatStats() { + long endTimeNanos = System.nanoTime(); + long totalTimeNanos = endTimeNanos - startTimeNanos; + long nodesIndexed = progressReporter.getTotalUpdatesCount(); + long avgTimePerDocumentMicros = nodesIndexed == 0 ? -1 : (totalTimeIndexingNanos / nodesIndexed)/1000; + long otherTimeNanos = totalTimeIndexingNanos - totalTimeMakingDocumentsNanos - totalTmeWritingToIndexNanos; Review Comment: Just a small thing but what is `otherTimeNanos`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: oak-dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org