Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/english/load-test


https://github.com/english/load-test

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# load-test

Exposes one function, `blast!`, that allows you to repeatedly make requests against an
endpoint and receive the responses on a given channel. Requests are performed for a given
duration and rate.

e.g. Make POST 5 requests per second to `https://example.com` for 10 seconds

```clj
(let [request {:headers {:Content-Type "text/plain"}
:url "https://exmaple.com"
:method "POST"
:body "hello"}
response-channel (async/chan 1)]

(async/go-loop
[]
(when-some [{:keys [response-time status method url body]} (async/