Skip to content

benchmark: add support for memory profiling#3701

Closed
shawnh2 wants to merge 1 commit intoenvoyproxy:mainfrom
shawnh2:benchmark-memory-profile
Closed

benchmark: add support for memory profiling#3701
shawnh2 wants to merge 1 commit intoenvoyproxy:mainfrom
shawnh2:benchmark-memory-profile

Conversation

@shawnh2
Copy link
Copy Markdown
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
Comment thread tools/make/kube.mk
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
Copy Markdown
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

@codecov
Copy link
Copy Markdown

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.

}

func renderMetricsTableHeader(table *tabwriter.Writer, headers []ReportTableHeader) {
func renderProfilesTable(writer io.Writer, target, key string, titleLevel int, reports []*BenchmarkReport) {
Copy link
Copy Markdown
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
Copy Markdown
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