本帖最后由 listentoenglish 于 2013-7-15 14:25 编辑
Dhrystone比较GD32与STM32速度.
56M GD32比72M STM32快,108M GD32 比72M STM32 两倍还快
编译器:IAR 6.40
STM32F103测试结果:
//==============================================================================
//30.2ms @24M FLASH 1000LOPS
//1000/30.2/1.757=18.8461DMIPS
//18.8461/24.0000=0.7853DMIPS/MHz
//42.0ms @24M RAM 1000LOPS
//1000/42.0/1.757=13.5512DMIPS
//13.5512/24.0000=0.5646DMIPS/MHz
//25.2ms @36M FLASH 1000LOPS
//1000/25.2/1.757=22.5854DMIPS
//22.5854/36.0000=0.6274DMIPS/MHz
//27.8ms @36M RAM 1000LOPS
//1000/27.8/1.757=20.4731DMIPS
//20.4731/36.0000=0.5687DMIPS/MHz
//19.0ms @48M FLASH 1000LOPS
//1000/19.0/1.757=29.9554DMIPS
//29.9554/48.0000=0.6241DMIPS/MHz
//20.8ms @48M RAM 1000LOPS
//1000/20.8/1.757=27.3631DMIPS
//27.3631/48.0000=0.5701DMIPS/MHz
//21.8ms @56M FLASH 1000LOPS
//1000/21.8/1.757=26.1079DMIPS
//26.1079/56.0000=0.4662DMIPS/MHz
//18.0ms @56M RAM 1000LOPS
//1000/18.0/1.757=31.6196DMIPS
//31.6196/72.0000=0.4392DMIPS/MHz
//17.0ms @72M FLASH
//1000/17.0/1.757=33.4795DMIPS
//33.4795/72.0000=0.4650DMIPS/MHz
//14.0ms @72M RAM
//1000/14.0/1.757=40.6537DMIPS
//40.6537/72.0000=0.5646DMIPS/MHz
GD32测试结果
//================================================================================
//37.2ms @24M FLASH 1000LOPS
//25.0ms @36M FLASH 1000LOPS
//18.6ms @48M FLASH 1000LOPS
//16.0ms @56M FLASH 1000LOPS
//12.4ms @72M FLASH 1000LOPS
//9.4ms @96M FLASH 1000LOPS
//9.0ms @100M FLASH 1000LOPS
//8.4ms @108M FLASH 1000LOPS
同频下:24M STM32F反而比GD32快。
36M 以上,GD32更快。
STM32运算速度与频率不是线性关系。
GD32运算速度与频率是简单的线性关系。 主频是几倍关系,运算速度就是几倍的关系。
|