olecve / clj-gatling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clj-gatling

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.

Installation

Add the following to your project.clj :dependencies:

[clj-gatling "0.0.2"]

Usage

(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

License

Copyright (C) 2014 Markus Hjort

Distributed under the Eclipse Public License, the same as Clojure.

About

License:Eclipse Public License 1.0