Re: Question about speed: Weird Behavior - Mailing list pgsql-jdbc

From Craig Ringer
Subject Re: Question about speed: Weird Behavior
Date
Msg-id 4DF6018B.2000307@postnewspapers.com.au
Whole thread Raw
In response to Re: Question about speed: Weird Behavior  (Radosław Smogura <rsmogura@softperience.eu>)
List 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

pgsql-jdbc by date:

Previous
From: Radosław Smogura
Date:
Subject: Re: Question about speed: Weird Behavior
Next
From: Maciek Sakrejda
Date:
Subject: Re: Question about speed: Weird Behavior