Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

shawnh2
Copy link
Contributor

@shawnh2 shawnh2 commented Jun 29, 2024

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

Signed-off-by: shawnh2 <shawnhxh@outlook.com>
@shawnh2 shawnh2 requested a review from a team as a code owner June 29, 2024 02:33
@@ -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
Copy link
Contributor Author

@shawnh2 shawnh2 Jun 29, 2024

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

Copy link

codecov bot commented Jun 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.85%. Comparing base (2a86997) to head (9ebba16).
Report is 3 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@@ -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) {
Copy link
Contributor Author

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

@shawnh2 shawnh2 marked this pull request as draft July 1, 2024 00:35
@shawnh2
Copy link
Contributor Author

shawnh2 commented Jul 11, 2024

should wait #3772, but close it for now, because too much conflicts, will re-raise another PR when #3772 is landed.

@shawnh2 shawnh2 closed this Jul 11, 2024
@shawnh2 shawnh2 deleted the benchmark-memory-profile branch July 11, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant