Skip to content

a couple benchmarks to compare python and c++ runtimes

License

Notifications You must be signed in to change notification settings

michaelneuder/python_vs_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_vs_cpp

a couple benchmarks to compare python and c++ runtimes. a detailed analysis and presentation of the results can be found in the jupyter notebook in the main directory. i will include some graphs produced below for a quick glance a the results. the tl;dr version of the results is that python is about 50x slower when doing compututions. the pyqt graphics library, however, is only about 5x slower than the standard c++ version of qt.


result overview

random number generation

rng

prime factorization

rng

graphics - no computation

rng

graphics - computation

rng

graphical app (looks identical in python and c++)

rng rng rng rng

check out the notebook if you are interested. it explains everything.

-mike

About

a couple benchmarks to compare python and c++ runtimes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published