Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.
/ PCB Public archive

Prime-Number Benchmark in Python & C

Notifications You must be signed in to change notification settings

a-p-jo/PCB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

PCB

Small Python v C Benchmark

PCB takes a 'Load Value' and a 'Repeat Count' as command-line arguments. For example, ./PCB 1.5 5 or ./PCB.py 1.5 5 here, for 5 timed iterations, prime numbers are searched between 2 and (1.5 * 10^7) using modulo division.

The number of primes found, total number of iterations, the avg iteration time as well as total time is output.

PCB does not purport to be an accurate benchmark for purpose of comparing performance across systems/processors.It tests only for integer division , supplies only CPU time, and compiler/OS optimizations may vary.