Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

how to benchmark the speed of an app

Name: s 2011-07-22 3:27

what is the best way to benchmark the speed of apps, say time how fast an app runs to completion? Is there a universal way to time an app runs to completion for both interpreted and compiled languages?

Name: Anonymous 2011-07-22 3:28

Name: Anonymous 2011-07-22 3:29

>>2
He said an application, not a language, moron.

Name: Anonymous 2011-07-22 3:30

>>2
I dont want to know which programming language is fastest, I want to be able to time the speed of an app compiled with different optiimizations in a compiler, or time the speed of an app compiled in different brands of compiler, stuff like that

Name: Anonymous 2011-07-22 3:36

time. I don't know others.

Name: Anonymous 2011-07-22 4:38

>>4
man time

Name: Anonymous 2011-07-22 6:24

pseudo-code

timer = current_time()
// code
execution_time = current_time() - timer


pretty simple dude

Name: Anonymous 2011-07-22 9:37

>>7
timer = current_time()
super_pipelined_remote_call()
execution_time = current_time() - timer
remote_call_causing_a_pipeline_stall()

Name: Anonymous 2011-07-22 11:37

pseudo-code

TimerManager mng = new TimerManager();
Timer timer = TimerManager.getNewTimer();
timer.setTime(TimerManager.getCurrentTime(timer))
//code
timer.getTimeElapsed()

this is the ENTERPRISE way

Name: Anonymous 2011-07-22 11:43

>>9
Your post lacks industry-standard `code' tags.

Name: Anonymous 2011-07-22 12:55

$ date; ./a.out; date

Name: Anonymous 2011-07-22 13:07

>>10
it's not a best practice.

Don't change these.
Name: Email:
Entire Thread Thread List