Skip to content

Commit

Permalink
feature: generate json body from external command (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
gamelife1314 committed Jul 30, 2023
1 parent 81da723 commit 36dadc6
Show file tree
Hide file tree
Showing 7 changed files with 276 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.2.0 - 2023-07-30

build json request body from external command.

# v0.1.12 - 2023-07-30

update dependency and slim docker images.
Expand Down
204 changes: 199 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rsb"
version = "0.1.12"
version = "0.2.0"
edition = "2021"
authors = ["MichaelFu <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -34,6 +34,7 @@ serde = {version = "1.0.164", features = ["derive"]}
colored = "2.0.4"
concolor-clap = "0.1.0"
rlimit = "0.9.1"
async-process = "1.7.0"

[target.'cfg(unix)'.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://github.com/gamelife1314/rsb/workflows/CI/badge.svg)](https://github.com/gamelife1314/rsb/actions)
[![License MIT](https://img.shields.io/badge/liccense-MIT-green?style=flat&logo=PowerShell)](https://github.com/gamelife1314/rsb/blob/main/LICENSE)
[![Codecov](https://codecov.io/gh/gamelife1314/rsb/branch/main/graph/badge.svg)](https://app.codecov.io/gh/gamelife1314/rsb)
[![Crates.io](https://img.shields.io/badge/crates.io-v0.1.12-blue)](https://crates.io/crates/rsb)
[![Crates.io](https://img.shields.io/badge/crates.io-v0.2.0-blue)](https://crates.io/crates/rsb)

`rsb` is a http server benchmark tool written in rust. The development of this tool is mainly inspired
by the [`bombardier`](https://github.com/codesenberg/bombardier) project, and I would like to thank the author for his
Expand Down Expand Up @@ -105,6 +105,9 @@ example:
rsb -n 1 -m POST --json-body '{"version":"v0.1.0","name":"rsb"}' http://127.0.0.1:54326/post-json
// or
rsb -n 1 -m POST --json-file json.txt http://127.0.0.1:54326/post-json
// or build json body from external command, this will call rsbg program to generate request body
cargo run -- -c 50 -t 5s -n 5000 -l --json-command "rsbg hello world xxx 1" -m POST http://127.0.0.1:5302/hello


## FORM BODY

Expand Down
Binary file modified resources/assets/rsb-help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 36dadc6

Please sign in to comment.