Redian新闻
>
[转载] How to compare the CPU time of two algorithms?
avatar
[转载] How to compare the CPU time of two algorithms?# Unix - 噫吁兮,危乎高哉
f*g
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?
avatar
p*h
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?

avatar
b*d
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.

avatar
f*g
4
Where can I download it?

【在 b******d 的大作中提到】
: use profiler
avatar
m*m
5
Download gprof.

【在 f********g 的大作中提到】
: Where can I download it?
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。