f********g 发帖数: 4 | 1 【 以下文字转载自 Software 讨论区 】
【 原文由 frostzhong 所发表 】
I want to compare two algorithms. I need the empirical data of their CPU
time. How can I do it? use special software or programming it myself using
some specific functions? |
p**h 发帖数: 99 | 2 if on unix, you can use the 'time' utility to get the cpu time of your running.
if you do FORTRAN, it has a function (forgot the name) which can let you get
the cpu time. you can search for it.
【在 f********g 的大作中提到】 : 【 以下文字转载自 Software 讨论区 】 : 【 原文由 frostzhong 所发表 】 : I want to compare two algorithms. I need the empirical data of their CPU : time. How can I do it? use special software or programming it myself using : some specific functions?
|
b******d 发帖数: 28 | 3 use profiler
【在 p**h 的大作中提到】 : if on unix, you can use the 'time' utility to get the cpu time of your running. : if you do FORTRAN, it has a function (forgot the name) which can let you get : the cpu time. you can search for it.
|
f********g 发帖数: 4 | 4 Where can I download it?
【在 b******d 的大作中提到】 : use profiler
|
m*******m 发帖数: 182 | 5 Download gprof.
【在 f********g 的大作中提到】 : Where can I download it?
|