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
Copy file name to clipboardExpand all lines: README.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,19 +13,21 @@ However I needed to do more complex and fundamental customization, such as addin
13
13
14
14
I would like to thank Peter Zaitsev, Alexy Kopytov and contributors for inventing great tool [sysbench](https://github.com/akopytov/sysbench).
15
15
16
-
## How to install
16
+
## Install
17
17
18
18
```
19
-
go install github.com/samitani/go-sysbench/cmd/go-sysbench@main
19
+
go install github.com/samitani/go-sysbench/cmd/go-sysbench@latest
20
20
```
21
21
22
-
## Incompatibility with sysbench
22
+
## Usage
23
+
24
+
### General Syntax
25
+
26
+
### Options
23
27
24
-
*`go-sysbench` supports only `oltp_read_only` and `oltp_read_write` database benchmarks. Linux benchmarks such as `fileio`, `cpu`, `memory` are not supported.
25
-
* Some options are not implemented. `go-sysbench oltp_read_write run --help` shows available options.
26
28
```
27
29
$ go-sysbench oltp_read_write run --help
28
-
2025/02/05 22:55:07 Usage:
30
+
2025/02/08 12:27:31 Usage:
29
31
go-sysbench [OPTIONS] oltp_read_write run [run-OPTIONS]
30
32
31
33
Help Options:
@@ -47,15 +49,22 @@ Help Options:
47
49
--mysql-password= MySQL password [$MYSQL_PWD]
48
50
--mysql-db= MySQL database name (default: sbtest)
49
51
--mysql-ssl=[on|off] use SSL connections (default: off)
52
+
--mysql-ignore-errors= list of errors to ignore, or "all" (default: 1213,1020,1205)
50
53
--pgsql-host= PostgreSQL server host (default: localhost)
51
54
--pgsql-port= PostgreSQL server port (default: 5432)
--pgsql-db= PostgreSQL database name (default: sbtest)
58
+
--pgsql-ssl=[on|off] use SSL connections (default: off)
55
59
--spanner-project= Spanner Google Cloud project name
56
60
--spanner-instance= Spanner instance id
57
61
--spanner-db= Spanner database name (default: sbtest)
58
62
```
63
+
64
+
## Incompatibility with sysbench
65
+
66
+
*`go-sysbench` supports only `oltp_read_only` and `oltp_read_write` database benchmarks. Linux benchmarks such as `fileio`, `cpu`, `memory` are not supported.
67
+
* Some options are not implemented. See Options section above.
59
68
* Number of reconnects is not reported.
60
69
* Lua scripts is not supported. To customize the benchmark scenario, you have to edit the code directly.
0 commit comments