Throughput calculation in Jmeter

后端 未结 1 998
忘了有多久
忘了有多久 2021-02-03 14:35

Attached is the Summary Report for my tests.

Please help me understand how is the throughput value calculated by JMeter: example the throughput of the very

相关标签:
1条回答
  • 2021-02-03 15:04

    Documentation defines Throughput as

    requests/unit of time. The time is calculated from the start of the first sample to the end of the last sample. This includes any intervals between samples, as it is supposed to represent the load on the server. The formula is: Throughput = (number of requests) / (total time).

    So in your case you had 1 request, which took 1129ms, so

    Throughput = 1 / 1129ms = 0.00088573959/ms 
               = 0.00088573959 * 1000/sec = 0.88573959/sec 
               = 0.88573959 * 60/min = 53.1443754/min, rounded to 53.1/min
    

    For 1 request total time (or elapsed time) is the same as the time of this single operation. For requests executed multiple times, it would be equal to

    Throughput = (number of requests) / (average * number of requests) = 1 / average
    

    For instance if you take the last line in your screenshot (with 21 requests), it has an average of 695, so throughput is:

     Throughput = 1 / 695ms = 0.0014388489/ms = 1.4388489/sec, rounded to 1.4/sec
    

    In terms of units (sec/min/hour), Summary report does this:

    • By default it displays throughput in seconds
    • But if throughput in seconds < 1.0, it will convert it to minutes
    • If it's still < 1.0, it will convert it to hours
    • It rounds the value to 1 decimal digit afterwards.

    This is why some values are displayed in sec, some in min, and some could be in hours. Some may even have value 0.0, which basically means that throughput was < 0.04

    0 讨论(0)
提交回复
热议问题