Skip to content

Commit

Permalink
Render response latency numbers as long. Rename json field
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorncs committed Jan 22, 2025
1 parent bfd1c1f commit 8b028c7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ static void printBenchmarkResult(long durationNanos, long successes, long failur
for (var e : stats.statsByCode().entrySet()) {
generator.writeObjectFieldStart(Integer.toString(e.getKey()));
generator.writeNumberField("count", e.getValue().count());
generator.writeObjectFieldStart("latencies");
writeFloatField(generator, "avg", e.getValue().averageLatencyMillis(), 3);
writeFloatField(generator, "min", e.getValue().minLatencyMillis(), 3);
writeFloatField(generator, "max", e.getValue().maxLatencyMillis(), 3);
generator.writeObjectFieldStart("latency");
generator.writeNumberField("min", e.getValue().minLatencyMillis());
generator.writeNumberField("avg", e.getValue().averageLatencyMillis());
generator.writeNumberField("max", e.getValue().maxLatencyMillis());
generator.writeEndObject();
generator.writeEndObject();
}
Expand Down

0 comments on commit 8b028c7

Please sign in to comment.