运行基准时,例如dhrystone命令:
make output/dhrystone.riscv.out
如:http://riscv.org/download.html#tab_rocket所述, 在C ++模拟器上。我得到以下输出: 第一次运行时:
Microseconds for one run through Dhrystone: 1064
Dhrystones per Second: 939
cycle = 533718
instret = 148672
第二次:
Microseconds for one run through Dhrystone: 1064
Dhrystones per Second: 939
cycle = 533715
instret = 148672
为什么周期不同?不应该完全一样。我也尝试过其他基准测试,并且偏差更大。如果这是正常的,偏差来自哪里?