It's not a secret anymore!
The moose likes Testing and the fly likes Getting Transaction time for each sampler in Jmeter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Getting Transaction time for each sampler in Jmeter" Watch "Getting Transaction time for each sampler in Jmeter" New topic

Getting Transaction time for each sampler in Jmeter

ashokaa kumar

Joined: Jun 08, 2011
Posts: 1
hi every one.. i am new to Jmeter. at the end of my load test jmeter is giving me the average response time of the samplers, i need time taken for each sampler, is there any way to get this in j meter??

sugan san
Ranch Hand

Joined: May 23, 2013
Posts: 47
For each sample , you can see in Aggregate Report and View Results Tree Table.

Please visit the following URL:
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11778

The Aggregate Report wont give you transaction times for each sampler - it provides an aggregate of transaction times for the samplers.

The View Results Tree Table can give you transaction times on each sample, if you want to go and look at each sample manually and work it out for yourself. It will appear in the Load Time of the "Sampler Request" tab:

If you prefer to get it an easier way, then you can use a Simple Data Writer to output the raw data to a file as you run your tests (or use the "-l logfile" option from the command line if you are running in non-gui mode). You can then look at the raw data - the transaction times will be the first or second field depending on your output format. For example, in XML format it will look like this:

Where the t="215" tells us the time the sampler took.

Alternatively, if you use the CSV format, then you will get an output similar to:

In this case, the first field is the timestamp, and the second field (108 in this case) is the time the sampler took.

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I agree. Here's the link:
subject: Getting Transaction time for each sampler in Jmeter
jQuery in Action, 3rd edition