commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juozas Baliuka" <bali...@centras.lt>
Subject Re: [Collections] StaticBucketMap not thread safe
Date Wed, 26 Jun 2002 20:01:32 GMT
I modified test, both tests show nothing, but this shows how
to write "bad" and "good" performance tests :)
Output:

    [junit] Running
org.apache.avalon.excalibur.collections.test.ThreadedMapTest
    [junit] Synchronized HashMap took 62ms
    [junit] Thats 6.2E-4ms per operation
    [junit] BucketMap (5001 buckets) took 94ms
    [junit] Thats 9.4E-4ms per operation
    [junit] Unsized BucketMap (255 buckets) took 140ms
    [junit] Thats 0.0014ms per operation
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,47 sec
    [junit] Testsuite:
org.apache.avalon.excalibur.collections.test.ThreadedMapTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,47 sec

----- Original Message -----
From: "Berin Loritsch" <bloritsch@apache.org>
To: "'Jakarta Commons Developers List'" <commons-dev@jakarta.apache.org>
Sent: Wednesday, June 26, 2002 8:57 PM
Subject: RE: [Collections] StaticBucketMap not thread safe


> > From: Peter Royal [mailto:proyal@apache.org]
> >
> > On Wednesday 26 June 2002 02:54 pm, Berin Loritsch wrote:
> > > The good news is that thread contention is not as expensive
> > as it used
> > > to be in JDK 1.4.  The bad news is it still plays a major part.
> >                    ^^^^^^^
> >
> > You mean 1.3? :)
> > -pete
>
> I just can't write.
>
> I meant in JDK 1.4 it is not as bad as in prior JDKs.
>
>
> --
> To unsubscribe, e-mail:
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:commons-dev-help@jakarta.apache.org>
>

Mime
View raw message