适用于测试CPU性能。首先需要用你本地的编译工具编译zeta.c
,例如:
gcc -o zeta zeta.c -lm
然后执行它:
./zeta -s 1.2 -n 1000
参数的含义:
s
参数对应公式中的s
n
是求和项目的数量,对应公式里面的n
我自己的笔记本上运行的结果是:
$ ./zeta -s 1.2 -n 1000
s=1.200000, n=1000
zeta(1.200000)=4.335765, time=0.000145(sec)
Test CPU performance with the Riemann function. (利用黎曼ζ函数测试CPU性能。)
适用于测试CPU性能。首先需要用你本地的编译工具编译zeta.c
,例如:
gcc -o zeta zeta.c -lm
然后执行它:
./zeta -s 1.2 -n 1000
参数的含义:
s
参数对应公式中的s
n
是求和项目的数量,对应公式里面的n
我自己的笔记本上运行的结果是:
$ ./zeta -s 1.2 -n 1000
s=1.200000, n=1000
zeta(1.200000)=4.335765, time=0.000145(sec)
Test CPU performance with the Riemann function. (利用黎曼ζ函数测试CPU性能。)
Other