You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
3
+
4
+
## Run all the benchmarks using Go Command
5
+
```
6
+
go test -benchmem -run=^$$ -bench=. ./...
7
+
```
8
+
9
+
## Run all the benchmark using makefile
10
+
Running below command will generate benchmark_sdk.md for analysis. To avoid excessive logging change the loglevel to LogLevelError.
11
+
```
12
+
make benchmark_sdk
13
+
```
14
+
## Run memory profiling of xray package using makefile
15
+
Running below command will generate benchmark_xray_mem.md for analysis.
16
+
```
17
+
make benchmark_xray_mem
18
+
```
19
+
## Run cpu profiling of xray package using makefile
20
+
Running below command will generate benchmark_xray_cpu.md for analysis.
0 commit comments