sysben测试cpu时,为什么采用素数加法运算

我看到sysbench测试cpu的性能时,采用了素数相加计算来判断cpu的性能,为什么要这样?

https://img4.mukewang.com/5b6eeb820001c1d805570495.jpg

红糖糍粑
浏览 1205回答 2
2回答

HUWWW

是素性测试吧。官网是这么讲的In this mode each request consists in calculation of prime numbers upto a value specified by the --cpu-max-primes option. All calculationsare performed using 64-bit integers.

牛魔王的故事

因为作者就那么想的。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

测试