quantmind / pulsar-bench

Benchmarking HTTP servers

Home Page:https://bench.pulsarweb.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pulsar benchmarking

Benchmark pulsar and other HTTP asynchronous servers.

CircleCI

Docker repository: quantmind/pulsar-bench

Github source: quantmind/pulsar-bench

Getting Started

To run benchmarks you need docker installed. Subsequently execute:

./benchmark.sh -h

This will download the latest image from docker-hub and display information about the possible benchmarks to execute.

To run a benchmark for a given server

./benchmark.sh pulsar

System and benchmarks information

./benchmark.sh --info

Run and save to results folder (important)

./benchmark.sh -J results/benchmarks.json

It is important to save to the results folder because it is mapped to the local drive so you can retrieve the results.

To build a new image

make build

Benchmark outside Docker

To run benchmarks outside docker, follow these instructions:

virtualenv venv
source venb/bin/activate
pip install -r dev/requirements/ci.txt
pip install -r dev/requirements/servers.txt

Then start one of the servers, for example

python benchmarks/servers/aiohttp_server.py

and execute wrk benchmarks

wrk http://127.0.0.1:7000/payload/1024 -c 10 -d 30

About

Benchmarking HTTP servers

https://bench.pulsarweb.org/


Languages

Language:Python 65.2%Language:JavaScript 18.5%Language:Lua 6.0%Language:Smarty 5.2%Language:Shell 3.6%Language:CSS 0.8%Language:Makefile 0.7%