150 likes | 271 Views
Analyzing the efficiency of Ajax. Liang Zhou lz2276@columbia.edu. Evaluation criteria. Bandwidth consumed for the entire task Time spent waiting for data to be transmitted Time spent completing a particular task. Testing. Testing environment
E N D
Analyzing the efficiency of Ajax Liang Zhou lz2276@columbia.edu
Evaluation criteria • Bandwidth consumed for the entire task • Time spent waiting for data to be transmitted • Time spent completing a particular task
Testing • Testing environment A computer with a Intel Pentium M 1700MHZ CPU and 1000MB Memory running Windows XP SP2 as server machine, the client machine is similar. There is one wireless router between these two machines. • Testing tool Microsoft Web Application Stress Tool DynaTrace Ajax Edition
Ajax may slow down the browser • Ajax enable us to fire request off excessively • Many JavaScript running time slow • The DOM operation is known to be slow • Many other JavaScript is slower than Java/c#, and php.
Another issue revealed by the experiment • Ajax enable us to fire request off excessively
Conclusion • Ajax reduced the number of data transmitted • Ajax saved the transmission time remarkably • the use of the Ajax should be on a case by case basis
References • [1] Jesse James Garrett, Ajax: A New Approach to Web Applications, Feb 2005 • [2] David Teare, An introduction to Ajax, Dev2Dev, Aug 2005 • [3] Brett McLaughlin, Mastering Ajax part1, IBM, Dec 2005 • [4] Chris Schalk, A Hype-Free Introduction to Ajax, Oracle, April 2006 • [5] W3shool JavaScript Tutorial • http://www.w3school.com.cn/js/ • [6] Dennis Lembree, Ajax and Web Accessibility, Nov 2008 • [7] W3school Ajax Tutorial • http://www.w3schools.com/ajax/default.asp