Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marcusgrass/python-external-cpp

A test using code written in cpp as python libraries for benchmarking efficiency differences
https://github.com/marcusgrass/python-external-cpp

Last synced: 21 days ago
JSON representation

A test using code written in cpp as python libraries for benchmarking efficiency differences

Awesome Lists containing this project

README

        

# python-external-cpp
A test using code written in cpp as python libraries for benchmarking efficiency differences

A small test for the speed differences of large calculations between functions built natively in Python vs imported compiled cpp code as libraries.

Results on finding primes show that the cpp imported library is 2-3 times faster for computing primes than python native functions.
Using python 3.6.6.

Almost no requirements necessary, if recompiling is necessary see instructions for how to do it and rename the path to the compiled
library in the imports section of benchmark.py