Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

zrlio/Python-c-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

Python -> C

Python -> C/C++ function call overhead benchmark. This repository allows you to run benchmarks on 6 different approaches:

  • boost
  • ctypes
  • cython
  • extension modules
  • extension modules with manual unpacking
  • SWIG

Build & Run

For each approach you will find a subdirectory. We recommend using virtual environments to run the benchmarks. Create a virtual environment in the directory of the benchmark, e.g.:

$ cd cython
$ virtualenv --python=python3 venv

In the same directory, build the benchmark with:

$ ./build.sh

Or

$ python3 ./setup.py install

if the directory does not have a build.sh script.

To run the benchmark:

$ python3 ../bench/bench.py

About

Python -> C/C++ function call overhead benchmark

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /