SN-0768 已核对来源,附原文与上下文。
我注意到哈希性能在不同 CPU 之间的差距没有预期的大。与老 CPU 相比,新 CPU 在哈希上的提速远不如它在通用基准测试上的表现。
I've noticed that hashing performance doesn't vary as much between CPUs as you'd expect. Compared to an old CPU, a newer CPU doesn't show as much of a speedup at hashing as it does on general benchmarks.
我猜近来的 CPU 优化肯定集中在 I/O 和分支预测之类的方面。大多数程序无非是一堆内存访问、比较和跳转,很少会长时间埋头做数学运算。
I guess recent CPU optimizations must have concentrated on things like I/O and branch prediction. Most programs are a bunch of memory access, comparisons and branching, they rarely get down to cranking away at maths for very long.
最新的 SVN 版本有 khash/s 显示。每个处理器大约 400 khash/s 是典型水平。
The latest SVN version has a khash/s display. Around 400 khash/s per processor is typical.