Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
apache_benchmarks [2013/09/30 13:17] 127.0.0.1 external edit |
apache_benchmarks [2015/06/01 20:58] steve |
||
---|---|---|---|
Line 18: | Line 18: | ||
</code> | </code> | ||
- | ==== Example CGP Graph ==== | ||
- | |||
- | {{:graph.png?600|}} | ||
==== Howto Run a Benchmark Test ==== | ==== Howto Run a Benchmark Test ==== | ||
Before you do any tests suites, use CGP to determine that average number of webserver connections over a specific period of time (week, month, etc.). Then use that average as the number of concurrent connections, to simulate the benchmark under normal conditions. | Before you do any tests suites, use CGP to determine that average number of webserver connections over a specific period of time (week, month, etc.). Then use that average as the number of concurrent connections, to simulate the benchmark under normal conditions. | ||
- | |||
- | Using Ragnar and this system load as an example, 4.7 is the average # of connections over one hour (3600 seconds). [[http://ragnarrelay.com/cgp/detail.php?p=apache&pi=localhost&t=apache_connections&h=ragnarrelay.com&s=3600|reference]] | ||
- | |||
- | Please note that this average is for all the traffic that the website generates -- not just one page. | ||
Once you have the average number of connections, you can simulate the load under any length of time. Fifteen seconds (one quarter of a minute) is a good number that is both realistic in simulation as well as wait time for the tester. | Once you have the average number of connections, you can simulate the load under any length of time. Fifteen seconds (one quarter of a minute) is a good number that is both realistic in simulation as well as wait time for the tester. | ||
Line 44: | Line 37: | ||
==== Sample Benchmark ==== | ==== Sample Benchmark ==== | ||
- | Using a local checkout of Ragnar's server, with an Apache installation on my desktop, here are some benchmark tests, using PHP and the ''prefork'' MPM, and the default Apache configuration. | + | Using an Apache installation on my desktop, here are some benchmark tests, using PHP and the ''prefork'' MPM, and the default Apache configuration. |
== Default Settings == | == Default Settings == |