zedr / cffi_test

A very simple CFFI-powered module.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CFFI test

The simplest example of a CFFI powered module I could come up with.

Pre-requisites

  • cffi
  • gcc

Installation

Just:

$ pip install .

or use the included Makefile.

Testing

After installing, run:

make test

Measuring performance gains

You can check how much performance you are getting out of using CFFI with:

make perf

About

A very simple CFFI-powered module.


Languages

Language:Python 74.6%Language:Makefile 13.8%Language:C 11.7%