作者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