Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

benchgrape-0.0.11.dev20190410083212.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file benchgrape-0.0.11.dev20190410083212.tar.gz.

File metadata

  • Download URL: benchgrape-0.0.11.dev20190410083212.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for benchgrape-0.0.11.dev20190410083212.tar.gz
Algorithm Hash digest
SHA256 16e37cf50491f24dce09dde30fba35c6cae315bb020c5226fb1ee7c3fbc7a4bb
MD5 e5562dea2f78393f6c66db16096530e0
BLAKE2b-256 7c175a94e683a74201ff2435432893e0193456fbc17f0559458f5381e1869e44

See more details on using hashes here.

File details

Details for the file benchgrape-0.0.11.dev20190410083212-py3-none-any.whl.

File metadata

  • Download URL: benchgrape-0.0.11.dev20190410083212-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for benchgrape-0.0.11.dev20190410083212-py3-none-any.whl
Algorithm Hash digest
SHA256 89e4bb7e14c143b1bf904b5d763dfc7f251ab4918b4c7cef0315753fe4516b62
MD5 3a31145949cd740da249b827d1a913a3
BLAKE2b-256 93364c9ad595fb8b552eaeb591905f86a68d9a8a4dc545d2b9a97794b1dbad6c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page