Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

some little problems in java

  Asked By: Almas    Date: Oct 03    Category: Java    Views: 382

i want to compare the running time and memory occupation different
sort algorithms.i have written the sorting programs but i don't
know how to measure the rinning time and system heap size.



2 Answers Found

Answer #1    Answered By: Viola Hanson     Answered On: Oct 03

I used to know how to do it in C++... check tutorgig.com, devshed.com
and the Java documentation (search for "Java documentation" with
Google, it should be the first thing returned). Unless this is an
assignment for a class don't both with it, just use a binary search
(check tutorgig and devshed) because it's the fastest.

Answer #2    Answered By: Arthur Cole     Answered On: Oct 03

I'm working now with XML documents and in the dom4j
there is a performance statistics and programs  that
may be could help you.

Didn't find what you were looking for? Find more on some little problems in java Or get search suggestion and latest updates.