Skip to content

nicolapalavecino/CPUBench

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

cpubench.c

A simple CPU Benchmarking tool

Author: Suyash Srijan
Email: suyashsrijan@outlook.com

This program calculates how much time your CPU takes to compute n digits of PI using Chudnovsky Algorithm and n prime numbers and uses the GNU Multiple Precision Arithmetic Library for most of the computations.

Compiling

To compile in a linux environment (Ubuntu or Raspbian) install the necessary libraries doing:

sudo apt-get install libgmp3-dev
sudo apt-get install libssl-dev

Then compile doing:

gcc -O3 -Wall -o cpubench cpubench.c -lgmp -lssl -lcrypto -fopenmp

Running

You can now run your own benchmark with sudo ./cpubench <number> <options>. An example of this is sudo ./cpubench 5000 --singlethreaded --nodigits.

To see further instructions you can do just sudo ./cpubench and all the options will be displayed.

About

A simple CPU Benchmarking tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%