time 查看命令执行时间

在命令执行完成之后就会打印出CPU的使用情况:

real    0m5.064s      <== 实际使用时间(real time) 
user    0m0.020s     <== 用户态使用时间(the process spent in user mode) 
sys     0m0.040s      <== 内核态使用时间(the process spent in kernel mode)

 

real    0m14.837s
user    0m0.030s
sys     0m0.120s

注:real远大于user加上sys ,大量的I/O操作,而磁盘I/O通常是最慢的环节。

 

posted @ 2020-05-13 09:12  linux——quan  阅读(1027)  评论(0编辑  收藏  举报