By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,179 Members | 2,192 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,179 IT Pros & Developers. It's quick & easy.

How to find performance difference between sorting ArrayList of Integers and ArrayL

P: 1
How do i find performance difference between sorting ArrayList of Integers and ArrayList of Strings?
Dec 5 '10 #1
Share this Question
Share on Google+
1 Reply


Oralloy
Expert 100+
P: 983
Satish,

First off, what are your requirements.....how big an array, etc.

Anyway, the way to test is to create comperable test data and sort the resulting arrays. How big the arrays are, etc., is a function of your testing requirements.

Since you are comparing a sort of Strings against a sort of Integers, the first thing you need to know is how you will make the comparisons.

Once you've put together a skeleton of your test, we can help you with the rest. First off, though, you need to understand how to formulate your test data and run the comparisons.

Building an array of random Integers is simple; but what are the String values? Are they just the string representations of the integers? Are you comparing the Strings as Strings, or as Integers?

Let us know, and we'll help you further.

Luck!
Oralloy
Dec 6 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.