https://github.com/digitalbazaar/monarch-benchmark
A suite of tools for benchmarking Monarch and Apache
https://github.com/digitalbazaar/monarch-benchmark
Last synced: 5 days ago
JSON representation
A suite of tools for benchmarking Monarch and Apache
- Host: GitHub
- URL: https://github.com/digitalbazaar/monarch-benchmark
- Owner: digitalbazaar
- Created: 2010-06-11T18:22:09.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2010-06-14T18:12:19.000Z (about 16 years ago)
- Last Synced: 2025-02-22T13:34:56.985Z (over 1 year ago)
- Language: C++
- Homepage: http://wiki.github.com/digitalbazaar/monarch-benchmark
- Size: 145 KB
- Stars: 2
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Apache+PHP and Monarch Benchmarks
---------------------------------
This benchmark suite is used to benchmark Apache and Monarch to see how the
performance profiles look under heavy concurrent load.
The benchmarks require an installation of Apache and a fresh build of
Monarch to complete. The benchmarks are designed to run in a Unix environment -
Ubuntu, Mac OS X or most other variants. It helps if you run the servers on
one machine and the benchmarks from another machine. A fast network connection
is also required - 100Mbps is recommended, 1Gbps is ideal.
Monarch Benchmark Source Code
-----------------------------
You can get the Monarch Benchmark source code by doing the following commands:
mkdir tmp
git clone git://github.com/digitalbazaar/monarch-benchmark.git
./build-setup
Installing and Running Apache
-----------------------------
Install Apache2 with the prefork MPM Worker.
Install mod-php5 for Apache2.
cd tmp/monarch-benchmark/apache
./apache-start
Building Monarch
----------------
You can build Monarch from the source code available via Github:
mkdir tmp
git clone git://github.com/digitalbazaar/monarch.git
./build-setup
make
./monarch-run pong
Running the Benchmarks
----------------------
You can run a set of benchmarks by using the bench-url tool in the apache
directory.
cd tmp/monarch-benchmark/apache
./bench-url http://URL_TO_BENCHMARK/
By default, the data will be placed into a directory called testdata. You can
generate gnuplot graphs by running the following command:
./graph-data testdata
You can view the plots by doing the following:
gnuplot testdata/gnuplot-throughput.plot
gnuplot testdata/gnuplot-latency.plot
To benchmark Apache, do this:
./bench-url http://apache-webserver:8001/pong.php
mv testdata apache-data
./graph-data apache-data
gnuplot apache-data/gnuplot-throughput.plot
gnuplot apache-data/gnuplot-latency.plot
To test Monarch, do this:
./bench-url http://monarch-webserver:19500/data/128
mv testdata monarch-data
./graph-data monarch-data
gnuplot monarch-data/gnuplot-throughput.plot
gnuplot monarch-data/gnuplot-latency.plot