-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added plot_data.go to visualize read-write benchmark result
Reasons: 1. The original plot_data.py is out of maintainance. 2. Remove the dependency on python and related python modules. 3. It isn't a best practice to compare benchmark results of two difference branches (e.g. main vs dev) in two charts. Instead, it's better to display the benchmarks to be compared in one chart. Signed-off-by: Benjamin Wang <wachao@vmware.com>
- Loading branch information
Showing
15 changed files
with
2,124 additions
and
309 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
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
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
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
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,31 @@ | ||
# etcd/tools/rw-benchmark | ||
|
||
`etcd/tools/rw-benchmark` is the mixed read/write performance evaluation tool for etcd clusters. | ||
|
||
## Execute | ||
|
||
### Benchmark | ||
To get a mixed read/write performance evaluation result: | ||
```sh | ||
# run with default configurations and specify the working directory | ||
./rw-benchmark.sh -w ${WORKING_DIR} | ||
``` | ||
`rw-benchmark.sh` will automatically use the etcd binary compiled under `etcd/bin/tools` directory. | ||
|
||
Note: the result csv file will be saved to current working directory. The working directory is where etcd database is saved. The working directory is designed for scenarios where a different mounted disk is preferred. | ||
|
||
### Plot Graphs | ||
To generate a HTML page including all the line charts based on the benchmark result csv files: | ||
```sh | ||
# To generate a HTML page with each chart including one pair of read & write | ||
# benchmark results from one data csv file. | ||
./rw-benchmark -l "main" ${FIRST_CSV_FILE} | ||
|
||
# To generate a HTML page with each chart including two pair of read & write | ||
# benchmark results from two data csv files respectively. | ||
./rw-benchmark -l "main:dev" ${FIRST_CSV_FILE} ${SECOND_CSV_FILE} | ||
``` | ||
|
||
The read QPS is displayed as <span style="color:blue">blue</span>, and write QPS is displayed as <span style="color:red">red</span>. | ||
The data in the second CSV file is rendered as dashed line if present. See example in [example/rw_benchmark.html](example/rw_benchmark.html). | ||
Note each line in the line chart can be hidden or displayed by clicking on the related legend. |
Oops, something went wrong.