Return-Path: X-Original-To: apmail-jakarta-jmeter-user-archive@www.apache.org Delivered-To: apmail-jakarta-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 A506093AE for ; Fri, 23 Sep 2011 15:12:42 +0000 (UTC) Received: (qmail 30766 invoked by uid 500); 23 Sep 2011 15:12:42 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 30734 invoked by uid 500); 23 Sep 2011 15:12:42 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 30724 invoked by uid 99); 23 Sep 2011 15:12:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2011 15:12:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of flyingrhenquest@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2011 15:12:35 +0000 Received: by fxd18 with SMTP id 18so4144905fxd.31 for ; Fri, 23 Sep 2011 08:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ccd+Gmg0AVFxLz7akSzUmPf/Uei8XvHLk+R4AClRMlY=; b=brnWnBE/I6f5lAsTSfTGvL5Lx3AD273/LzsuFIIfPGcAdnFlhFJNvkAmnegT7CrWeV 9o+9dxpgtb1vBQVoWz4YDRhpOMPvFcfnQ/P2J/9Q9ol4nW0VYCRFoApR87k17JF+DhXh B/bJjRNr+d5iUc0ei31XHcq88DRF/iCdo4E10= MIME-Version: 1.0 Received: by 10.223.48.211 with SMTP id s19mr5166356faf.33.1316790734439; Fri, 23 Sep 2011 08:12:14 -0700 (PDT) Received: by 10.152.36.106 with HTTP; Fri, 23 Sep 2011 08:12:14 -0700 (PDT) In-Reply-To: <1316766791339-4832808.post@n5.nabble.com> References: <1316719202410-4831233.post@n5.nabble.com> <1316761731151-4832617.post@n5.nabble.com> <1316766791339-4832808.post@n5.nabble.com> Date: Fri, 23 Sep 2011 09:12:14 -0600 Message-ID: Subject: Re: Bean Shell Preprocessor query From: Bruce Ide To: JMeter Users List Content-Type: multipart/alternative; boundary=00151744109cf8464b04ad9d3b4e --00151744109cf8464b04ad9d3b4e Content-Type: text/plain; charset=ISO-8859-1 Heh, I'm a programmer. I have to admit though, that I very rarely check my return value for null after vars.get. I figure if my BSF sampler fails with a null pointer exception, I should know what's going on. Using "" + for string conversion is probably a little less efficient than Long.toString(variable), since you're creating some extra temporary strings that you'll have to garbage collect later on. It probably wouldn't make a measurable difference in your test, unless you looped through doing it a few thousand times or using a multi-megabyte String. A system I used to work on would store 30+ megabyte Strings on a regular basis. You definitely don't want to create any more copies of those than you have to! -- Bruce Ide FlyingRhenquest@gmail.com --00151744109cf8464b04ad9d3b4e--