mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-21 11:16:47 +00:00
Compare commits
No commits in common. "11bb8b3fb0ea72801e3847edbc7f1fa742121757" and "b3af3f6ad509b3172aa3a1b3b906b415b415abc2" have entirely different histories.
11bb8b3fb0
...
b3af3f6ad5
29
README.md
29
README.md
@ -45,10 +45,27 @@ Download the latest binaries from the [releases](https://github.com/aykhans/dodo
|
|||||||
|
|
||||||
### Building from Source
|
### Building from Source
|
||||||
|
|
||||||
To build Dodo from source, ensure you have [Go 1.24+](https://golang.org/dl/) installed.
|
To build Dodo from source, ensure you have [Go 1.24+](https://golang.org/dl/) installed. Then follow these steps:
|
||||||
```sh
|
|
||||||
go install -ldflags "-s -w" github.com/aykhans/dodo@latest
|
1. **Clone the repository:**
|
||||||
```
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/aykhans/dodo.git
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Navigate to the project directory:**
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cd dodo
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Build the project:**
|
||||||
|
|
||||||
|
```sh
|
||||||
|
go build -ldflags "-s -w" -o dodo
|
||||||
|
```
|
||||||
|
|
||||||
|
This will generate an executable named `dodo` in the project directory.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@ -70,10 +87,10 @@ docker run --rm -i aykhans/dodo -u https://example.com -m GET -d 10 -r 1000 -t 2
|
|||||||
|
|
||||||
### 2. Config File Usage
|
### 2. Config File Usage
|
||||||
|
|
||||||
Send 1000 GET requests to https://example.com with 10 parallel dodos (threads) and a timeout of 800 milliseconds:
|
|
||||||
|
|
||||||
#### 2.1 JSON Example
|
#### 2.1 JSON Example
|
||||||
|
|
||||||
|
Send 1000 GET requests to https://example.com with 10 parallel dodos (threads) and a timeout of 800 milliseconds:
|
||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user