Swo*_*ish 4 shell performance benchmarking monitoring cpu-usage
任何有关以下方面的帮助将不胜感激:
有任何想法吗?
Performance testing isn't nearly as simplistic as that. All you test doing a particular operation is how fast a system completes that particular operation on that particular day.
CPUs are fast now, and they're rarely the bottleneck any more.
那么这又回到了这个问题——你想要实现什么目标?如果您确实想要相对测量 CPU 速度,那么您可以尝试使用系统实用程序之类的方法time。
就像是:
time ssh-keygen -b 8192 -f /tmp/test_ssh -N '' -q
继评论之后:这将提示您覆盖。您可以随时删除/tmp/test_ssh。(我不建议使用可变文件名,因为这会不稳定)
作为替代方案 - 如果已安装 - 那么我建议使用openssl.
例如
time openssl genrsa 4096
Time 默认返回 3 个数字:
对于此任务 - 我不完全确定指标如何显示 - 我不 100% 确定 VMware 是否“伪造”了虚拟化层中的 CPU 时间。通常,真实用户和用户(对于此操作)应该非常相似。
我刚刚在我的一些虚拟机上对此进行了测试,结果中出现了相当明显的“抖动”。但是,这可能就是您实际测试的内容。但请记住,CPU 并不是虚拟机上唯一存在竞争的资源。内存/磁盘/网络也是共享的。
| 归档时间: |
|
| 查看次数: |
3344 次 |
| 最近记录: |