Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/seipan/bluma
Browse files Browse the repository at this point in the history
  • Loading branch information
seipan committed Sep 22, 2023
2 parents cd8c848 + 1fbc4f6 commit 12bf20d
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,51 @@ go install github.com/seipan/bulma@latest

## Usage
```
bulma --path=/testdata/openapi.json
Usage:
bluma [flags]
Flags:
-b, --basepath string BaseURL for stress test
-d, --duration duration stress test duration (default 1ns)
-p, --filepath string FilePath for Parsing OpenAPI
-f, --frequency int stress test frequency (default 1)
-h, --help help for bluma
```

#### `-basepath`

This is the base URL where you want to apply the load.

#### `-duration`

This is stress test duration. (default 1ns)

#### `-filepath`

This is FilePath for Parsing OpenAPI.

#### `-frequency`

This is stress test frequency. (default 1)

## Example
```
bulma --path=testdata/health.yaml --base=http://localhost:8080
```

```
--------------------------bulma attack start-------------------------------
--------------------------vegeta attack to http://localhost:8080/health--------------------------
vegeta attack to method: GET
path StatusCode: map[200:1]
max percentile: 333.6204ms
mean percentile: 333.6204ms
total percentile: 333.6204ms
99th percentile: 333.6204ms
earliest: 2023-09-23 05:23:05.1839784 +0900 JST m=+1.029301501
latest: 2023-09-23 05:23:05.1839784 +0900 JST m=+1.029301501
-----------------------------------------------------------------------
--------------------------bulma attack finish-------------------------------
```

0 comments on commit 12bf20d

Please sign in to comment.