Re: Question about speed: Weird Behavior

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Radosław Smogura <rsmogura(at)softperience(dot)eu>
Cc: Israel Ben Guilherme Fonseca <israel(dot)bgf(at)gmail(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Question about speed: Weird Behavior
Date: 2011-06-13 12:24:43
Message-ID: 4DF6018B.2000307@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Maciek Sakrejda 2011-06-13 16:13:42 Re: Question about speed: Weird Behavior
Previous Message Radosław Smogura 2011-06-13 12:11:07 Re: Question about speed: Weird Behavior