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
@@ -46,6 +46,7 @@ Download the latest binaries from the [releases](https://github.com/aykhans/dodo
46
46
### Building from Source
47
47
48
48
To build Dodo from source, ensure you have [Go 1.24+](https://golang.org/dl/) installed.
49
+
49
50
```sh
50
51
go install -ldflags "-s -w" github.com/aykhans/dodo@latest
51
52
```
@@ -56,21 +57,21 @@ Dodo supports CLI arguments, configuration files (JSON/YAML), or a combination o
56
57
57
58
### 1. CLI Usage
58
59
59
-
Send 1000 GET requests to https://example.com with 10 parallel dodos (threads) and a timeout of 2 seconds:
60
+
Send 1000 GET requests to https://example.com with 10 parallel dodos (threads), each with a timeout of 2 seconds, within a maximum duration of 1 minute:
docker run --rm -i aykhans/dodo -u https://example.com -m GET -d 10 -r 1000 -t 2s
69
+
docker run --rm -i aykhans/dodo -u https://example.com -m GET -d 10 -r 1000 -o 1m -t 2s
69
70
```
70
71
71
72
### 2. Config File Usage
72
73
73
-
Send 1000 GET requests to https://example.com with 10 parallel dodos (threads) and a timeout of 800 milliseconds:
74
+
Send 1000 GET requests to https://example.com with 10 parallel dodos (threads), each with a timeout of 800 milliseconds, within a maximum duration of 250 seconds:
74
75
75
76
#### 2.1 JSON Example
76
77
@@ -82,6 +83,7 @@ Send 1000 GET requests to https://example.com with 10 parallel dodos (threads) a
82
83
"timeout":"800ms",
83
84
"dodos":10,
84
85
"requests":1000,
86
+
"duration":"250s",
85
87
86
88
"params": [
87
89
// A random value will be selected from the list for first "key1" param on each request
@@ -159,6 +161,7 @@ yes: false
159
161
timeout: "800ms"
160
162
dodos: 10
161
163
requests: 1000
164
+
duration: "250s"
162
165
163
166
params:
164
167
# A random value will be selected from the list for first "key1" param on each request
0 commit comments