Re: tweaking MemSet() performance

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: tweaking MemSet() performance
Date: 2002-08-30 21:15:24
Message-ID: 20020830171524.U10695@mail.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Aug 29, 2002 at 11:07:03PM -0400, Bruce Momjian wrote:
>
> Would you please retest this. I have attached my email showing a
> simpler test that is less error-prone.

Ok, here you go. Same machine as before, 2-way UltraSPARC-II @400
MHz, 2.5 G, gcc 2.95.3, Solaris 7. This gcc compiles 32 bit apps.

MemSet():

*64

real 0m1.298s
user 0m1.290s
sys 0m0.010s
*128

real 0m2.251s
user 0m2.250s
sys 0m0.000s
*256

real 0m3.734s
user 0m3.720s
sys 0m0.010s
*512

real 0m7.041s
user 0m7.010s
sys 0m0.020s
*1024

real 0m13.353s
user 0m13.350s
sys 0m0.000s
*2048

real 0m26.178s
user 0m26.040s
sys 0m0.000s
*4096

real 0m51.838s
user 0m51.670s
sys 0m0.010s

and memset()

*64

real 0m1.469s
user 0m1.460s
sys 0m0.000s
*128

real 0m1.813s
user 0m1.810s
sys 0m0.000s
*256

real 0m2.747s
user 0m2.730s
sys 0m0.010s
*512

real 0m12.478s
user 0m12.370s
sys 0m0.010s
*1024

real 0m26.128s
user 0m26.010s
sys 0m0.000s
*2048

real 0m57.663s
user 0m57.320s
sys 0m0.010s
*4096

real 1m53.772s
user 1m53.290s
sys 0m0.000s

A

--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Sullivan 2002-08-30 21:18:37 Re: Running postgres on a read-only file system
Previous Message Tom Lane 2002-08-30 21:09:23 Re: SRF memory mgmt patch (was [HACKERS] Concern about