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

https://github.com/nickstenning/ckan-perf-testing

Performance testing tools for CKAN (but probably applicable more generally)
https://github.com/nickstenning/ckan-perf-testing

Last synced: over 1 year ago
JSON representation

Performance testing tools for CKAN (but probably applicable more generally)

Awesome Lists containing this project

README

          

# CKAN performance testing

This repository contains a couple of simple shell scripts for running
performance and load tests against CKAN.

## requirements

The tests require the following testing tools to be installed:

- [wrk](https://github.com/wg/wrk)
- [vegeta](https://github.com/tsenart/vegeta)

## urls

The tests use an input file containing URL paths to test. Each URL is tested
individually by the performance testing script, while the load testing script
issues requests to randomly-chosen URLs from the input file.

An example input file is supplied in `views`, for use with a CKAN instance that
has had the [demo datasets](https://github.com/ckan/ckan-demo-data) loaded, but
**note that resource IDs are currently not fixed by the demo data and will need
to be updated in the `views` file before using these scripts**.

## performance tests

Run:

./perf http://ckanrooturl.com out.html <20140811T111729_load_10.bin

## caveats

DO NOT run performance or load tests against CKAN instances you do not control.

It is probably unwise to run performance or load tests against public CKAN
instances (or public websites in general).

The results of these tests reflect the behaviour of CKAN under highly artificial
loading conditions and you should be cautious when attempting to forecast CKAN's
performance under real loading conditions on the basis of the output of these
tools.