使用C++粗略测试
#include <iostream>
#include <stdio.h>
#include <time.h>
#include <algorithm>
#include <cstring>
using namespace std;
const int T=1000000000;
int main()
{
float a=3.1415926535898,b=30.1415926535898,c=300.14159265358,d;
for(int i=0;i<T;i++){
d=a*b+c;
}
printf("%.2f\n",(double)T/((double)clock()/CLOCKS_PER_SEC));
return 0;
}
结果:
笔者的笔记本大概每秒三亿多次,大概相当于1976年美国Cray-1超级计算机的水平。超过了1983年中国第一台超级计算机银河Ⅰ号的每秒一亿次的计算水平。目前最快的超级计算机美国Summit每秒20亿亿次,不知道以后个人计算机有没有可能达到这个水平。
超级计算机-维基百科