guodanhuai的个人博客分享 http://blog.sciencenet.cn/u/guodanhuai GIS,Spatio-temporal Analysis,Spatio-temoporal Data minig

博文

CPU vs Clock Time

已有 7501 次阅读 2009-10-10 16:13 |个人分类:HPC|系统分类:科研笔记| CPU, Wall-clock

CPU vs Clock Time

CPU time is the time required by the central peocessing unit to process instructions. It does not involve input/output waiting times (for example, when the code is waiting for the user to input some data and the user is taking a break).

On the other hand, wall clock time is the time taken to run a code as mesured by a regular clock. This will include all kinds of input/output operations and any processor idle time, also, if you are runnung 10 applications alongside your code, the wall clock time for your code will be obviously larger than if it was run only by itself.

CPU time is usually used to benchmark your code, but in reality, it is the wall clock time that really counts because if you start your code in the morning, and finishes by early evening, then that's when it really finished executing, not earlier as would most likely be reported by the CPU time.

https://blog.sciencenet.cn/blog-204718-261285.html

上一篇:my hometown
下一篇:MPI简介
收藏 IP: .*| 热度|

0

发表评论 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-18 03:42

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部