Skip to content

freshe/python-cpu-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Python CPU benchmark / prime cruncher

A tiny Python prime number cruncher / CPU bench
— A fun little exercise

How to use:

python3 cpu.py

Optional argument -n (number to crunch)

python3 cpu.py -n 100000000

(using pypy3 seems to be about 10x faster)

Some thoughts