linux time命令产生的实数小于用户 [英] linux time command resulting real is less than user

查看:111
本文介绍了linux time命令产生的实数小于用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在linux下测试perl脚本并使用time sh -c来衡量花费的时间时,我得到了一个奇怪的结果:

When I test a perl script under linux and use time sh -c to measure the time spent, I got a weird result:

real    14m11.903s
user    34m39.319s
sys     16m54.074s

,这意味着花费的实际时间甚至比用户时间还少.而且,通过视觉观察自己的时间,该脚本花费的时间不超过34分钟,而实时时间则更接近于我所看到的时间.有人对此有任何线索吗?谢谢.

which means the real time spent is even less than user time. And visually counting the time by myself, the script didn't spent as much as 34 minutes, and real time is closer to what I see. Has anyone have any clue about this? Thanks.

推荐答案

该脚本可能使用了1个以上的内核.

The script could have used more than 1 core.

这篇关于linux time命令产生的实数小于用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆