Create and run performance tests using Clojure. For reporting uses Gatling under the hood.
Note! Currently this is more of a proof-of-concept and lacks lot of features. The integration to Gatling is also far from perfect.
Add the following to your project.clj
:dependencies
:
[clj-gatling "0.0.2"]
(use 'clj-gatling.core)
(defn example-request [user-id]
(println (str "Simulating request for user #" user-id))
(Thread/sleep (rand 1000))
true)
(run-simulation
{:name "Test-scenario"
:requests [{:name "Example-request" :fn example-request}]} 2)
See example project from here
Copyright (C) 2014 Markus Hjort
Distributed under the Eclipse Public License, the same as Clojure.