pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ken Geis <kgeis@speakeasy.net>
To: pgsql-jdbc@postgresql.org
Subject: tuning/profiling
Date: Wed, 19 Oct 2005 08:57:41 -0700
Message-ID: <4cc26110e08d1241396f0e019466e2f1@speakeasy.net> (raw)

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




view thread (5+ messages)  latest in thread

Message-ID: <4cc26110e08d1241396f0e019466e2f1@speakeasy.net>
Permalink:  ../4cc26110e08d1241396f0e019466e2f1@speakeasy.net/
Also on:    postgresql.org/message-id/4cc26110e08d1241396f0e019466e2f1@speakeasy.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: kgeis@speakeasy.net
  Subject: Re: tuning/profiling
  In-Reply-To: <4cc26110e08d1241396f0e019466e2f1@speakeasy.net>
  References: <4cc26110e08d1241396f0e019466e2f1@speakeasy.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox