From 4f198d08d056304ae5f20a692cca70c77c515fef Mon Sep 17 00:00:00 2001 From: Keegan Carruthers-Smith Date: Mon, 9 Dec 2024 13:42:32 +0200 Subject: [PATCH] gateway: benchmark has same alignment for header and rows (#1133) 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. --- cmd/src/gateway_benchmark.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/src/gateway_benchmark.go b/cmd/src/gateway_benchmark.go index e6cc679d14..0c1c78570d 100644 --- a/cmd/src/gateway_benchmark.go +++ b/cmd/src/gateway_benchmark.go @@ -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),