pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Radosław Smogura <rsmogura@softperience.eu>
Cc: Israel Ben Guilherme Fonseca <israel.bgf@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Question about speed: Weird Behavior
Date: Mon, 13 Jun 2011 20:24:43 +0800
Message-ID: <4DF6018B.2000307@postnewspapers.com.au> (raw)
In-Reply-To: <56264945a293522f5d499649330d3f84@mail.softperience.eu>
References: <BANLkTimTaoOnVMcuUhnhE5VodRVDSTyH0w@mail.gmail.com>
	<4DF5B7B3.7010708@postnewspapers.com.au>
	<BANLkTimPigO8As72fj7MR59JU9GgzJSuyw@mail.gmail.com>
	<56264945a293522f5d499649330d3f84@mail.softperience.eu>

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



view thread (14+ messages)  latest in thread

Message-ID: <4DF6018B.2000307@postnewspapers.com.au>
Permalink:  ../4DF6018B.2000307@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4DF6018B.2000307@postnewspapers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: craig@postnewspapers.com.au, rsmogura@softperience.eu, israel.bgf@gmail.com
  Subject: Re: Question about speed: Weird Behavior
  In-Reply-To: <4DF6018B.2000307@postnewspapers.com.au>
  References: <BANLkTimTaoOnVMcuUhnhE5VodRVDSTyH0w@mail.gmail.com> <4DF5B7B3.7010708@postnewspapers.com.au> <BANLkTimPigO8As72fj7MR59JU9GgzJSuyw@mail.gmail.com> <56264945a293522f5d499649330d3f84@mail.softperience.eu> <4DF6018B.2000307@postnewspapers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox