The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

LinkedList performance in Visual Age vs Command Line

Posted by sach lomage on February 15, 2001 at 2:49 PM

I wrote a short program that tests various Containers including a LinkedList. One of the tests I ran on a LinkedList was Random inserts and removals from the list. In Visual Age it performed as expected with times much better than other containers like ArrayList and Vector. On the command line I recompiled it and ran it with JDK1.3 and also tried it with JDK1.2 and the LinkedList was 10 times slower doing the same random inserts and deletes than an ArrayList. I ran the program a couple of times with the same results. Is there anyway to explain this?



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us