Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Testing Collections  RSS feed

 
Alex Teslin
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am trying to implement a benchmark or an application to test collections in Java. Now, i don't know where to start.

Is there good places to look to give me some ideas before i start?

Thank you
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is your goal?
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I googled: java benchmark collection map list

I found a number of collection frameworks that claim to be faster than the standard Java collections framework. To prove this they must have written performance tests. Here is the comparison between "GNU Trove" collections and java collections. Being as they are open source it wouldn't be hard to get their code that does the comparison.

http://trove4j.sourceforge.net/performance.shtml
[ January 17, 2006: Message edited by: steve souza ]
 
Alex Teslin
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My goal is to create a program such as a profiler that will load a programmer's code, and to test several collections for a particular code where programmer is trying to use one and based on that result, which is fastest, give a choice to a programmer.

I know this sounds very vague, but that is the short explanation.

Thank you
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!