| Crates.io | viking |
| lib.rs | viking |
| version | 0.2.2 |
| created_at | 2021-12-08 22:50:55.562775+00 |
| updated_at | 2024-11-12 22:07:12.736204+00 |
| description | Raiding APIs in style. |
| homepage | https://crates.io/crates/viking |
| repository | https://github.com/replicadse/viking |
| max_upload_size | |
| id | 494848 |
| size | 484,378 |

viking is an alternative API load testing tool. We're raiding in style.
viking is unstable but really cool.
viking is an opinionated API load testing tool. A few of the key characteristics are:
cargo install viking
# This command renders an example configuration to STDOUT.
viking init
version: "0.2"
campaigns:
main:
phases:
- target:
env: "API_URI"
threads: 32
ends:
requests: 500
#time: !s 60
timeout:
s: 2000
report:
interval:
s: 1
spec:
get:
header:
x-api-key:
- env: "API_KEY"
query:
page:
- increment:
start: 0
step: 1
per_page:
- static: 4000
from:
- static: 1694901600
to:
- static: 1694905200
behaviours:
ok:
- match: ^(200)$
mark: success
- match: .*
mark: error
error:
backoff:
s: 1