Skip to content

Commit 17ba579

Browse files
committed
chore: simply result
1 parent d933fa3 commit 17ba579

4 files changed

Lines changed: 1 addition & 30 deletions

File tree

ingester-example/src/main/java/io/greptime/bench/BenchmarkResultPrinter.java

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -134,30 +134,10 @@ public static void printCompletionMessages(Logger log, String apiType) {
134134
log.info("{} API benchmark completed successfully!", apiType);
135135
}
136136

137-
public static void printFinalResults(Logger log, long totalRows, long durationMs, long throughput) {
138-
log.info("Final Result:");
139-
log.info("• Total rows: {}", totalRows);
140-
log.info("• Total batches: {}", (totalRows / 100000));
141-
log.info("• Duration: {}s", durationMs / 1000.0);
142-
log.info("• Throughput: {} rows/sec", throughput);
143-
log.info("");
144-
}
145-
146-
public static void printProviderResults(
147-
Logger log, TableDataProvider provider, long totalRows, long durationMs, long throughput) {
148-
log.info("=== {} Benchmark Results ===", provider.getClass().getSimpleName());
149-
log.info("Table: {}", provider.tableSchema().getTableName());
150-
log.info("SUCCESS");
151-
log.info("Total rows: {}", totalRows);
152-
log.info("Duration: {}ms", durationMs);
153-
log.info("Throughput: {} rows/sec", throughput);
154-
log.info("");
155-
}
156-
157137
public static void printBenchmarkSummary(
158138
Logger log, TableDataProvider provider, long totalRows, long durationMs, long throughput) {
159139
log.info("=== Benchmark Result ===");
160-
log.info("Fastest provider: {} ({} rows/sec)", provider.getClass().getSimpleName(), throughput);
140+
log.info("Table: {}", provider.tableSchema().getTableName());
161141
log.info("");
162142
log.info("Provider Rows Duration(ms) Throughput Status");
163143
log.info("--------------------------------------------------------------------------");

ingester-example/src/main/java/io/greptime/bench/benchmark/BatchingWriteBenchmark.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ public static void main(String[] args) throws Exception {
128128
long finalRowCount = totalRowsWritten.get();
129129
long finalThroughput = totalDurationMs > 0 ? (finalRowCount * 1000) / totalDurationMs : 0;
130130

131-
BenchmarkResultPrinter.printFinalResults(LOG, finalRowCount, totalDurationMs, finalThroughput);
132-
BenchmarkResultPrinter.printProviderResults(
133-
LOG, tableDataProvider, finalRowCount, totalDurationMs, finalThroughput);
134131
BenchmarkResultPrinter.printBenchmarkSummary(
135132
LOG, tableDataProvider, finalRowCount, totalDurationMs, finalThroughput);
136133

ingester-example/src/main/java/io/greptime/bench/benchmark/BulkWriteBenchmark.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ public static void main(String[] args) throws Exception {
133133
long finalRowCount = totalRowsWritten.get();
134134
long finalThroughput = totalDurationMs > 0 ? (finalRowCount * 1000) / totalDurationMs : 0;
135135

136-
BenchmarkResultPrinter.printFinalResults(LOG, finalRowCount, totalDurationMs, finalThroughput);
137-
BenchmarkResultPrinter.printProviderResults(
138-
LOG, tableDataProvider, finalRowCount, totalDurationMs, finalThroughput);
139136
BenchmarkResultPrinter.printBenchmarkSummary(
140137
LOG, tableDataProvider, finalRowCount, totalDurationMs, finalThroughput);
141138
} finally {

ingester-example/src/main/java/io/greptime/bench/benchmark/StreamingWriteBenchmark.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ public static void main(String[] args) throws Exception {
113113
long totalDurationMs = (System.nanoTime() - benchmarkStart) / 1000000;
114114
long finalThroughput = totalDurationMs > 0 ? (totalRowsWritten * 1000) / totalDurationMs : 0;
115115

116-
BenchmarkResultPrinter.printFinalResults(LOG, totalRowsWritten, totalDurationMs, finalThroughput);
117-
BenchmarkResultPrinter.printProviderResults(
118-
LOG, tableDataProvider, totalRowsWritten, totalDurationMs, finalThroughput);
119116
BenchmarkResultPrinter.printBenchmarkSummary(
120117
LOG, tableDataProvider, totalRowsWritten, totalDurationMs, finalThroughput);
121118

0 commit comments

Comments
 (0)