X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 52F69D1B23E for ; Fri, 23 Jul 2004 08:43:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80097-10 for ; Fri, 23 Jul 2004 11:43:09 +0000 (GMT) Received: from tht.net (vista.tht.net [216.126.88.2]) by svr1.postgresql.org (Postfix) with ESMTP id AE963D1B20E for ; Fri, 23 Jul 2004 08:42:59 -0300 (ADT) Received: from [134.22.68.4] (dyn-68-4.tor.dsl.tht.net [134.22.68.4]) by tht.net (Postfix) with ESMTP id D96E776C7F; Fri, 23 Jul 2004 07:43:08 -0400 (EDT) Subject: Re: Performance over a LAN From: Rod Taylor To: William Carney Cc: Postgresql Performance In-Reply-To: References: Content-Type: text/plain Message-Id: <1090582986.34076.5.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 23 Jul 2004 07:43:07 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/151 X-Sequence-Number: 7542 On Fri, 2004-07-23 at 01:50, William Carney wrote: > Hello, > > Using a test client application that performs 100000 insert operations on a > table, with the client application running on the same machine as the > Postgres server, I get the following results for the time taken to run the > test: > > Unix domain socket connection: 26 seconds > Inet domain socket ('localhost'): 35 seconds > The machines used are P4s running FreeBSD 5.2.1. The Postgres version is > 7.4.3. Can anyone tell me why there's such a big difference? Domains sockets have significantly less work to do than inet sockets as well as less delays for the transmission itself.