X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 905E5DA377 for ; Wed, 19 Oct 2005 12:57:47 -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 99331-10 for ; Wed, 19 Oct 2005 15:57:45 +0000 (GMT) Received: from mail27.sea5.speakeasy.net (mail27.sea5.speakeasy.net [69.17.117.29]) by svr1.postgresql.org (Postfix) with ESMTP id CD062DA283 for ; Wed, 19 Oct 2005 12:57:44 -0300 (ADT) Received: (qmail 2740 invoked from network); 19 Oct 2005 15:57:42 -0000 Received: from dsl081-050-168.sfo1.dsl.speakeasy.net (HELO [192.168.1.102]) (kgeis@[64.81.50.168]) (envelope-sender ) by mail27.sea5.speakeasy.net (qmail-ldap-1.03) with RC4-SHA encrypted SMTP for ; 19 Oct 2005 15:57:42 -0000 Mime-Version: 1.0 (Apple Message framework v623) Content-Transfer-Encoding: 7bit Message-Id: <4cc26110e08d1241396f0e019466e2f1@speakeasy.net> Content-Type: text/plain; charset=US-ASCII; format=flowed To: pgsql-jdbc@postgresql.org From: Ken Geis Subject: tuning/profiling Date: Wed, 19 Oct 2005 08:57:41 -0700 X-Mailer: Apple Mail (2.623) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200510/88 X-Sequence-Number: 14019 Hi. I just did some investigation into improving the performance of the JDBC driver. I want the best performance for my application, and I would love to be able to make PostgreSQL more competitive. I wrote a simple benchmark that would be doing an action common in my application (fetch ~11000 rows from a table with a date, four numeric(9,4) columns, and an integer.) I ran this through a profiler and found some hot spots. In the end, I was able to squeeze out at least 50% improvement with a small amount of changes to driver code. Before I submit patches, I must run my changes against the test suite and other benchmarks. Then I will break my patches into independent pieces. Some of my changes may be controversial because they may be less robust than current, but I am making some assumptions about the server protocol (like that date strings will never contain Unicode digits.) Does anyone have a benchmark they'd like me to run? I could run ECPerf, PolePosition, TPC-W, or Jdbcbench. Ken