Skip to main content

PHP Web-hosting benchmark

Project description

hosting-benchmark

A full web-hosting benchmark suite

Installation

Install using pip:

pip install hosting-benchmark

Usage

The benchmark consists of two components:

  • A server, which is a set of PHP scripts that run the benchmark
  • A client, which is a cli (command line interface) tool used to run the benchmark and collect/present the data.

In order to run the benchmark, you need to install the server app. This is fairly straightforward:

  • Create a MySQL database on your web hosting, note down the credentials
  • Run hosting-benchmark archive to prepare a ZIP archive with the server. You will be asked to provide your database credentials
  • Upload and extract the zip package to your web hosting http root directory
  • Run the benchmark using:
hosting-benchmark --hostname=https://example.com/ --count=10 --sleep=5 all

To learn what the --count and --sleep flags do, please invoke hosting-benchmark --help.

Development

Precommit Hooks

This project supports pre-commit. To use it please install it in the pip install pre-commit and then run pre-commit install and you are ready to go. black will be executed before commit and files will be formatted correctly.

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

hosting-benchmark-0.0.6.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

hosting_benchmark-0.0.6-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file hosting-benchmark-0.0.6.tar.gz.

File metadata

  • Download URL: hosting-benchmark-0.0.6.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for hosting-benchmark-0.0.6.tar.gz
Algorithm Hash digest
SHA256 5d436193f0e14f82322e59d5d27e23a849e1330eb028f8bae934355b89fe1d4b
MD5 dba94c67661d9258ffa3ad8b5e9ab05c
BLAKE2b-256 8940feb7cf06eeaf0cf2513ef90e7fa235a7a79de775b031238502897aedb0b3

See more details on using hashes here.

File details

Details for the file hosting_benchmark-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: hosting_benchmark-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for hosting_benchmark-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 db55845b561cb016e5adafa9c6b5fd850311a0335ea93405ef9e1143731f5124
MD5 aa9cd67a33dc82138d387a303e10c31c
BLAKE2b-256 d860ee8c118414faa3b74bf14bd456efb1da2f227dfe2819e3ebca2f9ce8223d

See more details on using hashes here.

Supported by

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