Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/english/load-test
https://github.com/english/load-test
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/english/load-test
- Owner: english
- License: epl-1.0
- Created: 2015-03-28T15:18:34.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-28T15:40:38.000Z (almost 10 years ago)
- Last Synced: 2025-01-20T01:21:26.483Z (10 days ago)
- Language: Clojure
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/