Re: Hash Join cost estimates - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: Hash Join cost estimates
Date
Msg-id 20130405120824.GN4361@tamriel.snowman.net
Whole thread Raw
In response to Re: Hash Join cost estimates  (Matthias <nitrogenycs@gmail.com>)
List pgsql-hackers
* Matthias (nitrogenycs@gmail.com) wrote:
> >In this example, hashing the large table is actually 2 seconds *faster*
> >than hashing the small table (again, all on my laptop).
>
> Are you running the laptop on battery? When I've benchmarked pgsql
> last time I used my laptop as well and it only occured to me after a
> lot of trying that laptops (even with all energy saving disabled in
> my case) don't always make for reliable benchmark machines. Things
> like your CPU clockspeed being dynamically adjusted can produce
> really strange results.

Those runs were with the laptop plugged in, but I've also run it w/o the
battery and while the performance is certainly different between those
two cases, the relative speed of hashing vs. hash-lookup has been
consistent.  Also, that's why I provided the test case- feel free (and
please do!) test it on any/all hardware you can find.  I'd love to hear
reports from others on their experiences.  Also, the relative speeds on
my laptop runs matched the performance (the laptop was slower, but
slower in both paths in a comparable way) on the big server where this
is all originating.

> Of course your test case might not be affected by this at all, but
> it's something to watch out for.

Certainly.
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: matview scannability rehash (was Re: Drastic performance loss in assert-enabled build in HEAD)
Next
From: Andres Freund
Date:
Subject: Re: corrupt pages detected by enabling checksums