作者wanggz (http://0rz.tw/0c5am)
看板Statistics
标题Re: [R] 运算时间 system.time
时间Wed Nov 18 11:38:18 2009
※ 引述《s3011 (真‧人肉Matlab)》之铭言:
: print(system.time(for(i in 1:25) X%*%X))
: user system elapsed
: 114.19 0.38 121.04
: 请问该如何解读这三个数字呢?
: 谢谢
?proc.time 中有解释
The definition of 'user' and 'system' times is from your OS.
Typically it is something like
_The 'user time' is the CPU time charged for the execution of user
instructions of the calling process. The 'system time' is the CPU
time charged for execution by the system on behalf of the calling
process._
而 elapsed 是实际上耗费的时间
--
R-Info:
http://rinfo.nchc.org.tw/
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.110.61.52
※ 编辑: wanggz 来自: 140.110.61.52 (11/18 11:40)
1F:→ granzi:算个25次dgemm要用掉121.04也太久了,换个BLAS吧 11/19 10:30