Re: [PERFORM] odd variances in count(*) times

2006-10-09 Thread Merlin Moncure
On 10/10/06, Jim C. Nasby <[EMAIL PROTECTED]> wrote: > >Try w/o the explain analyze. It adds quite a bit of overhead and that > >might be inconsistant between the systems (mainly it may have to do with > >the gettimeofday() calls being implemented differently between Windows > >and Linux..). > >

Re: [PERFORM] odd variances in count(*) times

2006-10-09 Thread Jim C. Nasby
On Mon, Oct 09, 2006 at 02:41:07PM -0400, Merlin Moncure wrote: > On 10/9/06, Stephen Frost <[EMAIL PROTECTED]> wrote: > >* Merlin Moncure ([EMAIL PROTECTED]) wrote: > >> explain analyze select 5000!; > >> A: 2.4 seconds > >> B: 1.8 seconds > >> > >> explain analyze select count(*) from generate_se

Re: [PERFORM] odd variances in count(*) times

2006-10-09 Thread Steinar H. Gunderson
On Mon, Oct 09, 2006 at 02:41:07PM -0400, Merlin Moncure wrote: > that was it. amd system now drop to .3 seconds, windows .6. (doing > time foo > psql -c bar > file). thanks... What you want is probably \timing in psql, by the way. :-) /* Steinar */ -- Homepage: http://www.sesse.net/ --

Re: [PERFORM] odd variances in count(*) times

2006-10-09 Thread Merlin Moncure
On 10/9/06, Stephen Frost <[EMAIL PROTECTED]> wrote: * Merlin Moncure ([EMAIL PROTECTED]) wrote: > explain analyze select 5000!; > A: 2.4 seconds > B: 1.8 seconds > > explain analyze select count(*) from generate_series(1,50); > A: 0.85 seconds > B: 4.94 seconds Try w/o the explain analyze.

Re: [PERFORM] odd variances in count(*) times

2006-10-09 Thread Stephen Frost
* Merlin Moncure ([EMAIL PROTECTED]) wrote: > explain analyze select 5000!; > A: 2.4 seconds > B: 1.8 seconds > > explain analyze select count(*) from generate_series(1,50); > A: 0.85 seconds > B: 4.94 seconds Try w/o the explain analyze. It adds quite a bit of overhead and that might be inc

[PERFORM] odd variances in count(*) times

2006-10-09 Thread Merlin Moncure
I have two systems running 8.2beta1 getting strange difference of results in count(*). Query that illistrates the difference is count(*). this is a synthetic test i use to measure a sytems's cpu performance. System A: 2.2 ghz p4 northwood, HT win xp vanilla sata (1 disk) System B: amd 64 3700+