Re: java Date related classes synchronization bottlenecks

2003-07-14 Thread David Cassidy
cc: Subject: Re: java Date related classes synchronization bottlenecks

Re: java Date related classes synchronization bottlenecks

2003-07-11 Thread David Rees
On Fri, Jul 11, 2003 at 08:57:54AM -0700, David Rees wrote: > > System 4: > Dual Mips R10k 225MHz, SGI Java 1.4.1 SGI IRIX I was mistaken about the CPU freq of this machine, it really has 2 R10k 180MHz CPUs, not 225MHz. -Dave -

Re: java Date related classes synchronization bottlenecks

2003-07-11 Thread David Rees
On Fri, Jul 11, 2003 at 10:10:21AM -0700, James Courtney wrote: > I didn't see an attachment that time. Thanks as this is interesting > stuff for Java development of any kind, not just Tomcat! Stupid me. Is attached now. -Dave import java.sql.*; import java.util.*; public class TestDatePerf

RE: java Date related classes synchronization bottlenecks

2003-07-11 Thread James Courtney
EMAIL PROTECTED] Subject: Re: java Date related classes synchronization bottlenecks David Cassidy said: > > I've done some tests with the below code > hope this helps David, Could you give this version a try, and run it for 1 million iterations instead of just 10k? I'll be po

Re: java Date related classes synchronization bottlenecks

2003-07-11 Thread David Rees
Here are the results from the last version of the TestDatePerf program I sent out. Below are the results from 3 different systems when run for 1 million iterations. Here's how I interpret the results: The program verifies the synchronization performance issue. Dual-CPU machines take a huge perfo

Re: java Date related classes synchronization bottlenecks

2003-07-11 Thread David Rees
David Cassidy said: > > I've done some tests with the below code > hope this helps David, Could you give this version a try, and run it for 1 million iterations instead of just 10k? I'll be posting my results shortly for a couple of different machines shortly. The new version keeps the theoreti

Re: java Date related classes synchronization bottlenecks

2003-07-11 Thread David Cassidy
t: Re: java Date related classes synchronization bottlenecks 11/07/2003 02:52

Re: java Date related classes synchronization bottlenecks

2003-07-10 Thread David Rees
On Thu, Jul 10, 2003 at 05:46:06PM -0500, Glenn Nielsen wrote: > > Now use jar to unarchive the src.jar file in your java SDK. > Take a look at the java.sql.Timestamp.toString() method which the FileLogger > above uses. > > To verify this look at the source for java.util.Date.getField(). Yes, th

java Date related classes synchronization bottlenecks

2003-07-10 Thread Glenn Nielsen
David Rees wrote: Glenn, This is quite interesting. How many concurrent threads need to be running before this bottleneck starts to become a significant issue? The worst case we have seen so far is when a JDBC query was made which returned 100's of result sets where one of the fields was of type