Return-Path: X-Original-To: apmail-jmeter-dev-archive@minotaur.apache.org Delivered-To: apmail-jmeter-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8AD4210E63 for ; Sat, 29 Nov 2014 13:07:58 +0000 (UTC) Received: (qmail 69825 invoked by uid 500); 29 Nov 2014 13:07:55 -0000 Delivered-To: apmail-jmeter-dev-archive@jmeter.apache.org Received: (qmail 69793 invoked by uid 500); 29 Nov 2014 13:07:55 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 69781 invoked by uid 99); 29 Nov 2014 13:07:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Nov 2014 13:07:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.212.172 as permitted sender) Received: from [209.85.212.172] (HELO mail-wi0-f172.google.com) (209.85.212.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Nov 2014 13:07:50 +0000 Received: by mail-wi0-f172.google.com with SMTP id n3so20621166wiv.11 for ; Sat, 29 Nov 2014 05:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kotnIxWmkAyuvQrYV/XbjQ2iRj6syp2oLi6MCj+9xr4=; b=egmOzuZUMRKevVhNUDd4cZBmoj8jqf0VUW/Q7Sj4PFKCeXbI+kBg3Dz2x/qshKxaFZ tiQ5Se6wp7PItnJxOBDSRcYxnAGXitrwAv2d2DckFWqLW4lbKJ/hmwVs3znw+LYns/16 c8uGNSnIppew6LlqG5ywx/lA3vSXVQYIAHKBQpNYCYOPiFxiVAjlbSqZUUZbbYJaPJO3 FNOTyt7ImX8+/Ph875aK5JD42soglRxatiDIDk5t5a52QEHpXJs4Lm38AgfLijS8c88J aw4RhxGViQcJCe36AWVoqgoPxwlhvb6eC9eYxPe50gPhhgiRfBvhl0Gfq+pksFrSB3Ns l3cw== MIME-Version: 1.0 X-Received: by 10.180.198.145 with SMTP id jc17mr69514644wic.67.1417266404450; Sat, 29 Nov 2014 05:06:44 -0800 (PST) Received: by 10.194.138.101 with HTTP; Sat, 29 Nov 2014 05:06:44 -0800 (PST) In-Reply-To: <5479B8B8.9010301@ya.ru> References: <5479B8B8.9010301@ya.ru> Date: Sat, 29 Nov 2014 13:06:44 +0000 Message-ID: Subject: Re: Introduce connect times for SampleResult? From: sebb To: dev@jmeter.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On 29 November 2014 at 12:14, Andrey Pokhilko wrote: > Hi, > > Many times I see a sence to have connect times measured separately, in > addition to latency that we have in SampleResult. It is important when > measuring a time for SSL handshake and DNS resolving, when users want to > see it separate share in total Response Time. > > Connect time is available as separate metric in Grinder and Yandex.Tank. > The latter has following details on response time pars: connect, send, > latency, receive. Sometimes some parts are zero, but at least there is a > technical possibility to see when it is non-zero. It should be noted > that full breakdown would be: dns, connect, send, latency, receive. > > Send and receive times are not of great importance, IMO. And I would > cope with connect time including DNS resolve time. But having connect > time would add interesting aspect on results. [I expect DNS resolve time might be very tricky to measure in Java] > For implementation it will require adding one more property with getters > and setters to SampleResult, modifying SampleSaveConfiguration and UI > settings to configure saving, using this new field in HTTP sampler, TCP > sampler, maybe there are other samplers that can respect this field. The docs would need to be updated to state whether a sampler supports the metric or not. > As separate question I would raise if latency should not include connect > time, for me it sounds logical, but changes existing behavior. Connect time is currently included in both latency and elapsed. The simplest would be to just add connect as a separate time, but not subtract it from latency or elapsed. This would allow further analysis without changing behaviour. Maybe add an option to perform the subtraction. I don't think we should change the default behaviour. > Any opinions? I can see its use and am not against it, but it needs quite a lot of work to implement fully. > -- > Andrey Pokhilko >