Skip to content

hypothesis/load-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hypothesis load testing

This repository contains scripts for performing load tests against the Hypothesis web service, in particular h, using Locust.

Running tests manually

First, ensure that the file descriptor limit in your current shell is sufficiently high. Otherwise tests may fail with DNS resolution errors before hitting the actual capacity limit of your h instance. On macOS and Linux, you can check limits with ulimit -a and adjust them with ulimit -n. You should choose a limit that is higher than the number of simulated users in your test runs.

Now install Locust and run the tests:

pip install locustio

export H_API_KEY=<your developer token>

# Disable SSL verification if your h instance doesn't have a valid SSL cert
# export VERIFY_SSL=no

locust --host=<h instance URL>

Navigate to http://localhost:8089 in a browser to start running tests and view results.

See the Locust documentation for more details.

About

Load-testing scripts for the Hypothesis web service

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages