use of org.voltdb.client.ClientStats in project voltdb by VoltDB.
the class AdTrackingBenchmark method printStatistics.
/**
* Prints a one line update on performance that can be printed
* periodically during a benchmark.
*/
public synchronized void printStatistics() {
ClientStats stats = periodicStatsContext.fetchAndResetBaseline().getStats();
long time = Math.round((stats.getEndTimestamp() - benchmarkStartTS) / 1000.0);
System.out.printf("%02d:%02d:%02d ", time / 3600, (time / 60) % 60, time % 60);
System.out.printf("Throughput %d/s, ", stats.getTxnThroughput());
System.out.printf("Aborts/Failures %d/%d, ", stats.getInvocationAborts(), stats.getInvocationErrors());
// cast to stats.getAverageLatency from long to double
System.out.printf("Avg/95%% Latency %.2f/%dms\n", stats.getAverageLatency(), stats.kPercentileLatency(0.95));
}
use of org.voltdb.client.ClientStats in project voltdb by VoltDB.
the class CallCenterApp method printResults.
/**
* Prints the results of the voting simulation and statistics
* about performance.
* @throws IOException
*
* @throws Exception if anything unexpected happens.
*/
public synchronized void printResults() throws IOException {
ClientStats stats = fullStatsContext.fetch().getStats();
// Performance statistics
System.out.print(HORIZONTAL_RULE);
System.out.println(" Client Workload Statistics");
System.out.println(HORIZONTAL_RULE);
System.out.printf("Average throughput: %,9d txns/sec\n", stats.getTxnThroughput());
// 4. Write stats to file if requested
client.writeSummaryCSV(stats, config.statsfile);
}
use of org.voltdb.client.ClientStats in project voltdb by VoltDB.
the class NbboBenchmark method printStatistics.
/**
* Prints a one line update on performance that can be printed
* periodically during a benchmark.
*/
public synchronized void printStatistics() {
ClientStats stats = periodicStatsContext.fetchAndResetBaseline().getStats();
long time = Math.round((stats.getEndTimestamp() - benchmarkStartTS) / 1000.0);
System.out.printf("%02d:%02d:%02d ", time / 3600, (time / 60) % 60, time % 60);
System.out.printf("Throughput %d/s, %d Aborts, %d Failures", stats.getTxnThroughput(), stats.getInvocationAborts(), stats.getInvocationErrors());
if (this.config.latencyreport) {
System.out.printf(", Avg-95%% Latency %.2f-%.2fms", stats.getAverageLatency(), stats.kPercentileLatencyAsDouble(0.95));
}
System.out.printf("\n");
}
use of org.voltdb.client.ClientStats in project voltdb by VoltDB.
the class MetroBenchmark method printStatistics.
/**
* Prints a one line update on performance that can be printed
* periodically during a benchmark.
*/
public synchronized void printStatistics() {
ClientStats stats = periodicStatsContext.fetchAndResetBaseline().getStats();
long time = Math.round((stats.getEndTimestamp() - benchmarkStartTS) / 1000.0);
System.out.printf("%02d:%02d:%02d ", time / 3600, (time / 60) % 60, time % 60);
System.out.printf("Throughput %d/s, ", stats.getTxnThroughput());
System.out.printf("Aborts/Failures %d/%d, ", stats.getInvocationAborts(), stats.getInvocationErrors());
// cast to stats.getAverageLatency from long to double
System.out.printf("Avg/95%% Latency %.2f/%dms\n", stats.getAverageLatency(), stats.kPercentileLatency(0.95));
}
use of org.voltdb.client.ClientStats in project voltdb by VoltDB.
the class PositionsBenchmark method printStatistics.
/**
* Prints a one line update on performance that can be printed
* periodically during a benchmark.
*/
public synchronized void printStatistics() {
ClientStats stats = periodicStatsContext.fetchAndResetBaseline().getStats();
long time = Math.round((stats.getEndTimestamp() - benchmarkStartTS) / 1000.0);
System.out.printf("%02d:%02d:%02d ", time / 3600, (time / 60) % 60, time % 60);
System.out.printf("Throughput %d/s, ", stats.getTxnThroughput());
System.out.printf("Aborts/Failures %d/%d, ", stats.getInvocationAborts(), stats.getInvocationErrors());
// cast to stats.getAverageLatency from long to double
System.out.printf("Avg/95%% Latency %.2f/%dms\n", stats.getAverageLatency(), stats.kPercentileLatency(0.95));
}
Aggregations