Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to know how many resources (MySQL time, CPU usage, bandwidth, etc.) will use my system with a certain number of API calls per second.

One API call gets the parameters in PHP, do from 1 to 5 SQL queries and returns a XML file.

How I can do that? Any idea of a formula or something?

share|improve this question
this just cannot be answered. You will need to do your own benchmarks and go from there. – Ben Pilbrow Dec 30 '10 at 16:36
up vote 0 down vote accepted

Use something like httperf to make constant load to your server like for example 10 req/sec Then you will have value how much your server is loaded at 10 req/sec, just scale that value up/down.

Of course, testing it "right" is very hard, as some calls will be shorter than other, so you have to know load profile of each req. type and how often each type of request is used.... or replay "production" traffic

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.