Hi as mentioned by another poster, the browser can make requests in parallel (as far as I know this is max of two threads per domain). Hence you will see a difference with Jmeter which will download all requests serially. Also Yslow/tamper data do not measure rendering times/javascript execution either (I may be wrong). And finally even with the cache on , a request is still made (you'll just get a 304 response) hence requests being made in parallel(from the browser) will be faster. If you use tamper data , you can see this when you graph the results.
regards deepak On Mon, Oct 19, 2009 at 2:34 AM, Alexandru Rotaru <alex.rot...@altom.ro>wrote: > Hi all, > > I'm running some simple tests using Jmeter 2.3.4: > 1. connect to the website home page > 2. go to the login page > 3. log into the website > > My test plan looks like this: > + HTTP Cookie Manager > + HTTP Cache Manager > + HTTP Request Defaults ("Retrieve all embedded resources from html files" > is ticked) > + Thread Group (repeat 1 thread for 10 times) > - HTTP Request HomePage-Get > - HTTP Request LoginPage-Get > - HTTp Request LoginPage-Post > +View Results Tree > > The response times for the Get requests are: > > HomePage - Get -> First run ~ 16.5 seconds, Next 9 runs ~ 9.3 > seconds > LoginPage - Get -> First run ~ 14.5 seconds, Next 9 runs ~ 9.3 > seconds > > If I run the same steps in a browser, I get the following results: > HomePage - Get -> First time (nothing is cached) <10 seconds, Next > runs < 3 seconds > LoginPage - Get -> less than 2 seconds > > I ran the same tests using the HttpClient sampler, and got similar result. > I ran the test both in GUI and non-GUI mode, and the results were similar. > > I was expecting to see a time difference between the browser and Jmeter, > but the other way around (Jmeter time < Browser time) as the browser does > also Java Script interpretation, page rendering ... > > I've been looking through the mailing archive, and found out about YSlow > and TamperData, and the Browser times I manually recorder resemble the ones > from these apps. > > Is there a way to measure the server response times using JMeter, and > getting results close to real usage? > > Thanks, > Alex > >