N*SEC/nTime 348432055.74912894 double
跟我之前的测试有差距
SetThreadAffOn a multiprocessor computer, it should not matter which processor is called. However, you can get different results on different processors due to bugs in the basic input/output system (BIOS) or the hardware abstraction layer (HAL). To specify processor affinity for a thread, use the SetThreadAffinityMask function.
本文通过C++代码示例介绍了如何使用Windows API进行CPU性能基准测试,并探讨了不同处理器上的测试结果差异及原因。同时,文章还提到了如何通过SetThreadAffinityMask函数来指定线程运行的处理器,以解决因BIOS或HAL问题导致的性能差异。
3472

被折叠的 条评论
为什么被折叠?



