Problem with time in java.

1 view
Skip to first unread message

Rahul.V.

unread,
Jul 14, 2010, 2:27:38 AM7/14/10
to bojug
Hi,
Am working on a small appplication to find whether my task is compute intensive or otherwise.
For that, I need to run my program on a machine and get the CPU time.
If i know the CPU configuration of some other machine how will i be able to predict the time required to run the same program on that machine.
If thats possible...please let me how to do it..

--
Regards,
R.V.

Viren

unread,
Jul 14, 2010, 3:59:54 AM7/14/10
to bo...@googlegroups.com
Here are my thoughts,

Factors and Examples First

Following factors needs to be taken into account before we start our analysis

1. CPU Speed : A high end graphics application running will run be rendered slowly on a machine with less CPU Speed, The same application will be processed faster on a high speed CPU. For example if flex based applications are running on firefox the CPU load would be too high irrespective of CPU speed, try running http://141sercon.com/flash/index.html and look for plugin-container.exe CPU consumption
2. CPU Load: A high memory application like a j2ee app server will take away approx 256 to 768Mb of RAM space, If Oracle is also running based on the memory parameters it may take another 30 to 40 % of the CPU, OS I am not sure how much it will take but it will be approx 400Mb +

there are other factors also like network applications trying to hang onto servers, this takes away precious CPU time. unresponsive applications on clients machine,

Now coming to the question


"If i know the CPU configuration of some other machine how will i be able to predict the time required to run the same program on that machine."

lets say the app needs to run on my machine which is having 2gb ram and dual core processor assuming your app is a simple GUI [no frame rate control etc],

one needs to know the CPU clock speed and find other factors effecting the application, may be if the questions is precise we can have a more precise answer, my thought process got stuck here!

thanks
viren


Nagabhirava Veerendra
+91 8028441355[HOME]
+91 9972788755 [CELL  ]
http://www.facebook.com/VirensJavaJump
http://www.twitter.com/VirensJavaJump


--
You received this message because you are subscribed to the Google Groups "Bangalore Open Java Users Group- BOJUG" group.
To post to this group, send email to bo...@googlegroups.com.
To unsubscribe from this group, send email to bojug+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bojug?hl=en.

Reply all
Reply to author
Forward
0 new messages