I am struggling for getting the solution.
What I have done:
I have recorded every file the navigating page is generating using HTTP Proxy Server.
Adding all the files under the Thread Group I ran the Test Plan, once with out cache and once with cache.
What I am getting:
But the response time I am getting using Firebug for that page is 30-40 sec less then what I am getting using Jmeter [for cache as well as non-cache].
NB: The page contains ajax.
Question:
- Is AJAX the reason I am getting huge variation in Response time when compared with the Firebug results?
- Do I need to restrict few files? I will not add them to the Thread Group?
Thanks.
Jmeter doesn’t render the pages, and doesn’t do javascript, so it doesn’t do ajax either.
However, ajax will generate requests and these requests will be captured by the proxy if you are using it.
The other key difference is that most browsers will do the requests concurrently, usually making 4 to 6 requests at a time, depending on the browser and settings.
Jmeter will make each request serially* rather than in parallel, so this could also potentially add to the total load time for a given page and all of the subsamples for it.
If you look at the request times for each request and add them up, it should come out pretty close
For question two, I would recommend not excluding them, as you want to get an accurate measure of the load, and excluding files will skew your results.