开发者

If a page takes 1 ms to render, does that mean 1000 pages per second?

If a webpage takes 1 ms to render, does that开发者_开发知识库 mean my application can do 1000 pages per second?

I understand it also depends on other things like db connections and locks, but in general is that a good measurement or is it actually probably more because of multi-threading capabilities of web servers and the # of cores etc?

BTW, as a side question, what kind of millisecond #'s do you guys see for your page views on rails apps?


the response time of 1 request isn't certainly enough data to estimate the performance and scalability of a rails app. this first and easiest way to get a quick hint at how your app is performing, is using ab (apache bench).

ab -n 100 -c 4 http://yourdomain.com/

where 100 is the number of requests, and 4 is the number of concurrent requests. don't forget the / at the end! (or specify some route / controller-action you want to test)


You definitely can't rely on linear scale, especially using low data points (or in your case, 1 data point).

This is the point of load testing - so that you can more reliably determine how your site/application will perform. By testing at predefined load intervals, you can better determine the curve at which performance declines.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜