-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
benchmark: add support for memory profiling #3701
Conversation
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
@@ -164,6 +165,12 @@ run-benchmark: install-benchmark-server ## Run benchmark tests | |||
kubectl wait --timeout=$(WAIT_TIMEOUT) -n envoy-gateway-system deployment/envoy-gateway --for=condition=Available | |||
kubectl apply -f test/benchmark/config/gatewayclass.yaml | |||
go test -v -tags benchmark -timeout $(BENCHMARK_TIMEOUT) ./test/benchmark --rps=$(BENCHMARK_RPS) --connections=$(BENCHMARK_CONNECTIONS) --duration=$(BENCHMARK_DURATION) --report-save-path=benchmark_report.md | |||
# render benchmark profiles into image | |||
dot -V |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blocked by #3692, need to deploy graphviz in github action
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3701 +/- ##
==========================================
+ Coverage 68.55% 68.85% +0.30%
==========================================
Files 170 175 +5
Lines 20690 21525 +835
==========================================
+ Hits 14183 14821 +638
- Misses 5492 5628 +136
- Partials 1015 1076 +61 ☔ View full report in Codecov by Sentry. |
@@ -234,7 +237,18 @@ func renderMetricsTable(writer io.Writer, headerSettings []ReportTableHeader, re | |||
return nil | |||
} | |||
|
|||
func renderMetricsTableHeader(table *tabwriter.Writer, headers []ReportTableHeader) { | |||
func renderProfilesTable(writer io.Writer, target, key string, titleLevel int, reports []*BenchmarkReport) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blocked by #3709, need to update the doc later
What type of PR is this?
What this PR does / why we need it:
To help understanding memory, add memory profiles to benchmark report.
Which issue(s) this PR fixes:
xref: #3698