• Post Reply Bookmark Topic Watch Topic
  • New Topic

test standard java application performance

 
punna Kumar
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Guys,
is there any free tool to test the standard java application performance, it wrote a java program useing threads , it's display the different times from me plz give soluation for this problem

my program look like thsi



[added code tags to preserve formatting - Ilja]
[ March 21, 2005: Message edited by: Ilja Preuss ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The built in System.currentTimeMillis call is one of the basic tools for performance testing. What exactly is your problem? Did you expect identical times for each run - it isn't going to happen due to a huge variety of factors - for example, the operating system may cache the file in memory after the first run.
Bill
 
punna Kumar
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi thanks for replay,
actually my problem is if i run start method , it will take lot of time to execute to my program , if u run with run() method it's take less time , how i can find what it will take to execute i mean exact time for 10 threads


plz help me?
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you run 'run ()', the method is called as an ordinary method - not as a single Thread.
You have to start 'start ()', to make it a Thread.
Call 'run ()' with multiple Instances to see.

If there is no option to call 'run' - do you still have a question?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!