Tuesday, August 9, 2005

[JSE 5.0] Performance Testing Example

Bruce Eckel had an interesting post on performance testing the collection classes. Basically, he is comparing the different classes, running a myriad of insertion and delete tests and then timing the operation. He uses System.nanoTime() and to quote him, “typically nanoTime() produces values with a granularity that is greater than one (and this granularity will vary with machines and operating systems)”.

No comments:


Popular Posts (Last 30 days)

This is a personal blog and I do not speak for my employer.