Merge pull request #13415 from spowelljr/fixTable

time-to-k8s: Fix long table lines auto wrapping
pull/13418/head
Medya Ghazizadeh 2022-01-20 14:44:14 -08:00 committed by GitHub
commit 7bdb2a25b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 10 deletions

View File

@ -181,6 +181,7 @@ func outputMarkdownTable(categories []plotter.Values, totals []float64, names []
t.SetAutoFormatHeaders(false) t.SetAutoFormatHeaders(false)
t.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false}) t.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false})
t.SetCenterSeparator("|") t.SetCenterSeparator("|")
t.SetAutoWrapText(false)
t.AppendBulk(c) t.AppendBulk(c)
t.Render() t.Render()
fmt.Println(b.String()) fmt.Println(b.String())

View File

@ -5,14 +5,14 @@ weight: -20220120
--- ---
![time-to-k8s](/images/benchmarks/timeToK8s/v1.25.0.png) ![time-to-k8s](/images/benchmarks/timeToK8s/v1.25.0.png)
| | minikube version: v1.25.0 | kind v0.11.1 go1.16.4 | k3d version v5.2.2 |
| | | linux/amd64 | | | | minikube version: v1.25.0 | kind v0.11.1 go1.16.4 linux/amd64 | k3d version v5.2.2 |
|----------------------|---------------------------|--------------------------------|--------------------| |----------------------|---------------------------|-----------------------------------|--------------------|
| Command Exec | 26.227 | 28.446 | 13.532 | | Command Exec | 26.227 | 28.446 | 13.532 |
| API Server Answering | 0.065 | 0.117 | 0.190 | | API Server Answering | 0.065 | 0.117 | 0.190 |
| Kubernetes SVC | 0.051 | 0.054 | 0.053 | | Kubernetes SVC | 0.051 | 0.054 | 0.053 |
| DNS SVC | 0.051 | 0.055 | 0.054 | | DNS SVC | 0.051 | 0.055 | 0.054 |
| App Running | 15.618 | 32.373 | 21.373 | | App Running | 15.618 | 32.373 | 21.373 |
| DNS Answering | 7.690 | 1.648 | 4.371 | | DNS Answering | 7.690 | 1.648 | 4.371 |
| Total | 49.701 | 62.692 | 39.573 | | Total | 49.701 | 62.692 | 39.573 |