Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seipan/bulma
:punch: CLI tool to parse OpenAPI and stress test each endpoint. :punch:
https://github.com/seipan/bulma
attack cli go openapi3 stress-test
Last synced: 3 months ago
JSON representation
:punch: CLI tool to parse OpenAPI and stress test each endpoint. :punch:
- Host: GitHub
- URL: https://github.com/seipan/bulma
- Owner: seipan
- License: mit
- Created: 2023-07-27T05:04:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-12T18:09:10.000Z (5 months ago)
- Last Synced: 2024-09-13T07:31:55.353Z (5 months ago)
- Topics: attack, cli, go, openapi3, stress-test
- Language: Go
- Homepage:
- Size: 111 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Last commit](https://img.shields.io/github/last-commit/seipan/bluma?style=flat-square)
![Repository Stars](https://img.shields.io/github/stars/seipan/bluma?style=flat-square)
![Issues](https://img.shields.io/github/issues/seipan/bluma?style=flat-square)
![Open Issues](https://img.shields.io/github/issues-raw/seipan/bluma?style=flat-square)
[![go](https://github.com/seipan/loghook/actions/workflows/go.yml/badge.svg)](https://github.com/seipan/loghook/actions/workflows/go.yml)# bulma
:punch: CLI tool to parse OpenAPI and stress test each endpoint. :punch:
## Install
```
go install github.com/seipan/bulma@latest
```## Usage
```
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.6204msearliest: 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-------------------------------
```## License
Code licensed under
[the MIT License](https://github.com/seipan/bulma/blob/main/LICENSE).