Re: Question about speed: Weird Behavior

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Question about speed: Weird Behavior
Дата
Msg-id 4DF6018B.2000307@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: Question about speed: Weird Behavior  (Radosław Smogura <rsmogura@softperience.eu>)
Список 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 по дате отправления:

Предыдущее
От: Radosław Smogura
Дата:
Сообщение: Re: Question about speed: Weird Behavior
Следующее
От: Maciek Sakrejda
Дата:
Сообщение: Re: Question about speed: Weird Behavior