-->

time(1)输出中的“ real”,“ user”和“ sys”是什么意思?

2020-08-15 21:21发布

问题:

$ time foo
real        0m0.003s
user        0m0.000s
sys         0m0.004s
$

What do 'real', 'user' and 'sys' mean in the output of time? 时间输出中的“真实”,“用户”和“ sys”是什么意思?

Which one is meaningful when benchmarking my app? 对我的应用进行基准测试时,哪一个有意义?


解决方案:

参考一: https://stackoom.com/question/2KkH/time-输出中的-real-user-和-sys-是什么意思
参考二: https://oldbug.net/q/2KkH/What-do-real-user-and-sys-mean-in-the-output-of-time-1
标签: