From: Thomas Dudziak <tomdzk@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Performance problem with timestamps in result sets
Date: Wed, 8 Mar 2006 19:40:43 +0100
Message-ID: <224f32340603081040m46f87698y49f3bbc11cfb31df@mail.gmail.com> (raw)
In-Reply-To: <20060308162543.GA29522@weaver.tuc.noao.edu>
References: <224f32340603080537ld424d49l2eea9440594104d3@mail.gmail.com>
<060a01c642bf$b3060220$9001a8c0@zaphod>
<224f32340603080657m35f7c35do34a2c6dc3f1b5f0@mail.gmail.com>
<006201c642c2$1f17a610$c29c143e@w128mtec>
<20060308162543.GA29522@weaver.tuc.noao.edu>
Hi,
I've run the attached sample with these results (1.000.000 rows):
no profiler: 7.850ms for the int's, 58.902ms for the timestamp's
cpu profiling: 8.865ms for the int's, 60.357ms for the timestamp's
cpu profiling with method count: 262.802ms for the ints, 695.188ms for
the timestamps
- getTimestamp(int) took 499.047ms for the 1.000.000 invocations
with toTimestamp(Calendar, String) 378.854ms of that
in contrast, getLong(int) took 169.703ms
It does not seem linear (the profiler definitely has some influence,
though a strange one).
Tom
Attachments:
Main.java (application/octet-stream, 3.2K) download
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: tomdzk@gmail.com
Subject: Re: Performance problem with timestamps in result sets
In-Reply-To: <224f32340603081040m46f87698y49f3bbc11cfb31df@mail.gmail.com>
References: <224f32340603080537ld424d49l2eea9440594104d3@mail.gmail.com> <060a01c642bf$b3060220$9001a8c0@zaphod> <224f32340603080657m35f7c35do34a2c6dc3f1b5f0@mail.gmail.com> <006201c642c2$1f17a610$c29c143e@w128mtec> <20060308162543.GA29522@weaver.tuc.noao.edu> <224f32340603081040m46f87698y49f3bbc11cfb31df@mail.gmail.com>
* 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