Skip to content

Commit

Permalink
gateway: benchmark has same alignment for header and rows (#1133)
Browse files Browse the repository at this point in the history
Minor formatting issue which caused the table to not be aligned.

Test Plan: Ran the shared incantation with "--requests 1" and the table
looked good.
  • Loading branch information
keegancsmith authored Dec 9, 2024
1 parent 20c534f commit 4f198d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/src/gateway_benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func printResults(results []endpointResult, requestCount *int) {

// Print each row
for _, r := range results {
fmt.Printf("%-20s | %-19s | %-19s | %-19s | %-19s | %-19s | %-19s | %-19s | %s\n",
fmt.Printf("%-25s | %-19s | %-19s | %-19s | %-19s | %-19s | %-19s | %-19s | %s\n",
r.name,
formatDuration(r.avg, r.avg == bestAvg, r.avg == worstAvg),
formatDuration(r.median, r.median == bestMedian, r.median == worstMedian),
Expand Down

0 comments on commit 4f198d0

Please sign in to comment.