Skip to content

Test CPU performance with the Riemann function. (利用黎曼ζ函数测试CPU性能。)

License

Notifications You must be signed in to change notification settings

az13js/cpu-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

黎曼ζ函数计算

黎曼ζ函数

适用于测试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)

About

Test CPU performance with the Riemann function. (利用黎曼ζ函数测试CPU性能。)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages