-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Benchmark profiling instructions and commands (#214)
* DummySegment and DummySubSegment creation * Revert "DummySegment and DummySubSegment creation" This reverts commit 4edb4b5. * Revert "Revert "DummySegment and DummySubSegment creation"" This reverts commit 0442d84. * ran gofmt command to remove golint warnings * remove redundent declaration * Added Dummysegment creation logic * Added reviewdog suggestions * modified code based on feedback * Benchmark instructions and makefile * Remove unnecessary logs
- Loading branch information
1 parent
c6b0644
commit 5667f5b
Showing
3 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Benchmark Instructions for AWS X-Ray Go SDK | ||
AWS X-Ray Go SDK introduced benchmarks to identify performance bottlenecks of AWS X-Ray Go SDK codebase. Moreover, benchmarks can be used to identify data races and locking issues. Below are the instructions on how to run AWS X-Ray Go SDK benchmarks using Go commands and makefile. | ||
|
||
## Run all the benchmarks using Go Command | ||
``` | ||
go test -benchmem -run=^$$ -bench=. ./... | ||
``` | ||
|
||
## Run all the benchmark using makefile | ||
Running below command will generate benchmark_sdk.md for analysis. To avoid excessive logging change the loglevel to LogLevelError. | ||
``` | ||
make benchmark_sdk | ||
``` | ||
## Run memory profiling of xray package using makefile | ||
Running below command will generate benchmark_xray_mem.md for analysis. | ||
``` | ||
make benchmark_xray_mem | ||
``` | ||
## Run cpu profiling of xray package using makefile | ||
Running below command will generate benchmark_xray_cpu.md for analysis. | ||
``` | ||
make benchmark_xray_cpu | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters