You can measure performance in response time and throughput. Response time is the round-trip time of a single request. This is the period from the initiation of the request in the browser to the web server, through the ColdFusion Server to the backend systems, back to the web server, and to the final page rendering in the browser. Various factors adversely affect ColdFusion application response times:
Throughput is the number of transactions (requests) a server processes within a specific period of time. The units used to measure a server's throughput are as follows: the number of requests (Hypertext Transfer Protocol [HTTP] hits), the numbers of kilobytes (KB), and the number of transactions. The number of requests is the most commonly used measurement. A site or application's ability to deliver content (data and graphics) as traffic or user load increases is called its scalability. A site's performance tends to degrade as page requests increase. However, response times of truly scalable sites increase proportionately with increasing user load. Achieving such scalability is your challenge in the successful deployment of high-performance web sites. How to Test for PerformanceTo test a site for throughput and performance, you first need to identify a load-testing suite that enables you to adequately test your application. There are different products on the market that offer a full range of load-testing capabilities. The key attributes that you need to look for in identifying the load-testing software that you will use are as follows:
After you've identified the load-testing product that you're going to use, you need to begin building your test scripts. Test scripts generally include a site traversal of your most commonly accessed site paths. You can mine this information from your own web logs, if necessary. What you are trying to do in creating your test script is to mimic what typical users would do when they visit your site. This might include creating an account, logging in, performing some data retrieval, and so on. You want to make sure that the site-traversal script you create is an adequate reflection of what your real-world users are doing when they visit your site. After you have a site-traversal script in place, you can begin throwing virtual users at your server using this site-traversal script. As load on the server increases, the response times for all the pages should gradually increase, rather than spike. This is how you'll measure how scalable your site is. |