Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 944EAB5DC5C for ; Mon, 13 Jun 2011 09:25:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 60458-02-3 for ; Mon, 13 Jun 2011 12:25:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id B9DC8B5DC26 for ; Mon, 13 Jun 2011 09:24:56 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 531CA10D; Mon, 13 Jun 2011 08:24:56 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id C9tAYmayG3yo; Mon, 13 Jun 2011 08:24:55 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id 83B5A2D; Mon, 13 Jun 2011 08:24:55 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 3B23DAE7BA; Mon, 13 Jun 2011 20:24:54 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id be-FD9kuLvy3; Mon, 13 Jun 2011 20:24:49 +0800 (WST) Received: from [10.1.1.5] (124-169-230-7.dyn.iinet.net.au [124.169.230.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 6DBFCAE7B9; Mon, 13 Jun 2011 20:24:49 +0800 (WST) Message-ID: <4DF6018B.2000307@postnewspapers.com.au> Date: Mon, 13 Jun 2011 20:24:43 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Thunderbird/3.1.10 MIME-Version: 1.0 To: =?UTF-8?B?UmFkb3PFgmF3IFNtb2d1cmE=?= CC: Israel Ben Guilherme Fonseca , pgsql-jdbc@postgresql.org Subject: Re: Question about speed: Weird Behavior References: <4DF5B7B3.7010708@postnewspapers.com.au> <56264945a293522f5d499649330d3f84@mail.softperience.eu> In-Reply-To: <56264945a293522f5d499649330d3f84@mail.softperience.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/29 X-Sequence-Number: 21953 On 06/13/2011 08:11 PM, Radosław Smogura wrote: > Of course whole image is much more complicated. There may be some > fluctuations with JIT, as Craig wrote (actually you should take times > after 1000 of invocations - if it's client JVM , or change compile > threshold in JVM to be sure if JVM doesn't gives you overhead). There > may be some GC overhead, you should call System.gc after or before each > pass to start with similar environment. As well, some if you connect > through TCP/IP this may randomize your results too. Yep. Yet more good reasons to try to benchmark real-world tasks instead of synthetic micro-benchmarks, which are *REALLY* hard to get right. Israel Ben Guilherme Fonseca: Is there a certain number of repetitions after which the numbers stop changing? -- Craig Ringer