This is how you'd Bench a Grape!
Project description
This is how you'd Bench a Grape!
Installation
$ pip install -r requirements.txt
$ python setup.py install
package installation on a linux machine (in virtualenv) for running the benchmark
mkdir benchgrape
cd benchgrape
virtualenv -p python3 benchgrape
source benchgrape/bin/activate
cd benchgrape
pip install --upgrade virtualenv
pip install benchgrape
benchgrape --help
Development
This project includes a number of helpers in the Makefile
to streamline common development tasks.
Revert an installed package to continue development
$ python setup.py develop
Environment Setup
The following demonstrates setting up and working with a development environment:
### create a virtualenv for development
$ make virtualenv
$ source env/bin/activate
### run benchgrape cli application
$ benchgrape --help
### run pytest / coverage
$ make test
Releasing to PyPi
Before releasing to PyPi, you must configure your login credentials:
~/.pypirc:
[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORD
Then use the included helper function via the Makefile
:
$ make dist
$ make dist-upload
Deployments
Docker
Included is a basic Dockerfile
for building and distributing Bench Grape
,
and can be built with the included make
helper:
$ make docker
$ docker run -it benchgrape --help
Examples
Test Websocket Stability
connect 10 websockets to staging.chatgrape.com and record 1 hour activity
benchgrape websocket test -n 10 -t 3600 --url https://staging.chatgrape.com --username chat@grape.com --password 'quote-if-special-chars'
Load Test data for Benchmark
Test data can be exported on the grape server.
benchgrape test-data load localhost.json
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for benchgrape-0.0.9.dev20190410083212.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c37ccb51a8007128f260e26c14fc528b8e262605e8e7c7595400abaa5e3eb53 |
|
MD5 | 694ff65b2d6b19f139c97cb5ea24522a |
|
BLAKE2b-256 | 15a801284f2c78f49dc81407650e96864032c017431ef03a4dd2c1d2f9e640d7 |
Hashes for benchgrape-0.0.9.dev20190410083212-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22f7c1ddc6283ad7714d3a557125a3283e39b661756287f4c1b90d66dfb484a4 |
|
MD5 | 0c96f91f8782bc8166a804e7b9496e69 |
|
BLAKE2b-256 | a499ee9b5d7467c3201deea0d4c9a1c60153c6accd06badc934dbcac67400b67 |