Re: synchronized code

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Barry Lind <blind(at)xythos(dot)com>
Cc: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: synchronized code
Date: 2003-01-08 21:59:50
Message-ID: 20030108215947.GE20810@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Wed, Jan 08, 2003 at 01:56:19PM -0800, Barry Lind wrote:
> Oliver,
>
> What you need to be testing is syncronization vs. object allocation
> *and* garbage collection. How are you testing the overhead that the
> garbage collection adds since garbage collection in java by its nature
> is something that is async.
>
> Perhaps having a System.gc() call at the end of each test would be
> sufficient?

I'm timing total throughput across all threads vs. elapsed real time so GC
should be included. -verbose:gc shows that minor GCs are, in fact, happening
frequently (2-3 per second)

-O

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Michael Paesold 2003-01-08 22:06:17 Re: synchronized code
Previous Message Barry Lind 2003-01-08 21:56:19 Re: synchronized code