Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 270E2101DE for ; Sat, 30 Nov 2013 10:07:33 +0000 (UTC) Received: (qmail 17240 invoked by uid 500); 30 Nov 2013 10:07:32 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 16975 invoked by uid 500); 30 Nov 2013 10:07:30 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 16966 invoked by uid 99); 30 Nov 2013 10:07:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Nov 2013 10:07:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pierpaolo.bagnasco@gmail.com designates 209.85.215.176 as permitted sender) Received: from [209.85.215.176] (HELO mail-ea0-f176.google.com) (209.85.215.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Nov 2013 10:07:24 +0000 Received: by mail-ea0-f176.google.com with SMTP id h14so7465033eaj.21 for ; Sat, 30 Nov 2013 02:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=OxFj303+fld1rKkuSVZAyACjO6jLL3DP69ldpisslY8=; b=V0kkEsKfkfailEIu/FIhXPE2y4GrXMg2alhCwXGra6zpzA3tQWaj+XDA5vW6qIZl0A YxCGSw5pgxLbTVTDrtPAWRSVzdv87+CckIINy4tpU5TurDrGivQ6riyZd4xrJrWxUeJP JmcMhlk5pL2VE3uh6RJCUJCqwSu+NxdiH8IQrHWvlrktaBosngbJ9dhTX91wgaa8bUHJ xb+B7+iP/ikhilIEVyYG9vqfllYUyPQnmOgKPEjv/ygK6T5ZlMFQXh4o8cMjg1d7YuCC nthMOm6IKcdMLvcgRSVFSW7/EhenPeUTWIBiAjRT9rFchHNSo7MvQiXaBZ+AaEkJk6Nr 8dmw== X-Received: by 10.14.225.2 with SMTP id y2mr513590eep.62.1385806022721; Sat, 30 Nov 2013 02:07:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.14.3.73 with HTTP; Sat, 30 Nov 2013 02:06:41 -0800 (PST) In-Reply-To: References: From: Pierpaolo Bagnasco Date: Sat, 30 Nov 2013 11:06:41 +0100 Message-ID: Subject: Re: Calculating the throughput (requests/sec) and plot it To: JMeter Users List Content-Type: multipart/alternative; boundary=047d7b66fc25b6465004ec621bc5 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b66fc25b6465004ec621bc5 Content-Type: text/plain; charset=ISO-8859-1 Hi, thanks for the reply. I already corrected that formula, but it still doesn't change anything. I tried for example counting all samples in each 1000 milliseconds interval, like: first sample=1385731060500 last sample=1385731061394 difference=894 milliseconds samples=277 So I tried with: (277/894)*1000=~309 requests/second. But the first graphic, in the same period, shows a throughput of ~90. 2013/11/30 sebb > On 29 November 2013 22:39, Pierpaolo Bagnasco > wrote: > > I'm using JMeter client to test the throughtput of a certain workload > > (PHP+MySQL, 1 page) on a certain server. Basically I'm doing a "capacity > > test" with an increasing number of threads over the time. > > > > I installed the "Statistical Aggregate Report" JMeter plugin and this was > > the result (ignore the "Response time" line): [image: enter image > > description here] > > > > At the same time I used the "Simple Data Writer" listener to write a log > > file ("JMeter.csv"). Then I tried to "manually" calculate the throughput > > for every second of the test. > > > > Each line of "JMeter.csv" has this format: > > > > timestamp elaspedtime responsecode success bytes > > 1385731020607 42 200 true 325 > > ... ... ... ... ... > > > > The timestamp is referred to the time when the request is made by the > > client, and not when the request is served by the server. So I simply > > did: *totaltime > > = timestamp + elapsedtime*. > > That's wrong. > > timestamp + elapsedtime = end time *not* total time. > > The timestamp is the start time. > > > In the next step I converted the *totaltime* to a date format, like: > > *13:17:01*. > > > > I have more than 14K samples and with Excel I was able to do this > quickly. > > > > Then I counted how many samples there were for each second. Example: > > > > totaltime samples (requestsServed/second) > > 13:17:01 204 > > 13:17:02 297 > > ... ... > > > > When I tried to plot the results I obtained the following graphic: > [image: > > enter image description here] > > > > As you can notice it is far different from the first graphic. > > > > Given that the first graphic is correct, what is the mistake of my > > formula/procedure to calculate the throughput? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org > For additional commands, e-mail: user-help@jmeter.apache.org > > --047d7b66fc25b6465004ec621bc5--