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

tiup bench: modify command from --output to --output-dir #10028

Merged
merged 4 commits into from
Aug 17, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 3 additions & 13 deletions tiup/tiup-bench.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ Available Commands:
Flags:
--check-all Run all consistency checks
-h, --help help for tpcc
--output string Output directory for generating csv file when preparing data
--parts int Number to partition warehouses (default 1)
--tables string Specified tables for generating file, separated by ','. Valid only if output is set. If this flag is not set, generate all tables by default.
--warehouses int Number of warehouses (default 10)
```

Expand Down Expand Up @@ -109,26 +107,18 @@ Flags:
{{< copyable "shell-regular" >}}

```shell
tiup bench tpcc --warehouses 4 prepare --output data
tiup bench tpcc --warehouses 4 prepare --output-dir data --output-type=csv
```

6. Generate the CSV file for the specified table:

{{< copyable "shell-regular" >}}

```shell
tiup bench tpcc --warehouses 4 prepare --output data --tables history,orders
tiup bench tpcc --warehouses 4 prepare --output-dir data --output-type=csv --tables history,orders
```

7. Enable pprof:

{{< copyable "shell-regular" >}}

```shell
tiup bench tpcc --warehouses 4 prepare --output data --pprof :10111
```

8. Clean up data:
7. Clean up data:
JaySon-Huang marked this conversation as resolved.
Show resolved Hide resolved

{{< copyable "shell-regular" >}}

Expand Down