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 all 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
22 changes: 2 additions & 20 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,31 +107,15 @@ 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
```

7. Enable pprof:

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

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

8. Clean up data:

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

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

## Run TPC-H test using TiUP
Expand Down