servant-benchmark-0.1.1.1: Generate benchmark files from a Servant API
Safe HaskellNone
LanguageHaskell2010

Servant.Benchmark.Tools.Wrk

Description

This module provides support for the wrk benchmarking tool.

Given a Servant API and a list of Endpoints, the export function can produce a requests file containing a JSON representation of the provided Endpoints.

In order to provide wrk the request data, you can use a simple lua script as described in this tutorial.

An adapted version of the original script by Michael Czeraszkiewicz can be found in the project's repository

Synopsis

Documentation

export :: FilePath -> [Endpoint] -> IO () Source #

Export a requests file given a list of Endpoints