DragonFFI a C Foreign Function Interface (FFI) library written in C++ and based on Clang/LLVM.
I coded some python examples using DragonFFI.
LLVM Project announced about DragonFFI on this post. So I tried!
- Runtime
- Python 3.6.3 :: Anaconda, Inc.
- Installation
pip install pydffi
$ python fib_nrm.py
Time:0.3381009101867676[sec]
$ python fib_opt.py
Time:5.2928924560546875e-05[sec]
$ python call_fib_from_c_nrm.py
Time:0.049577951431274414[sec]
$ python call_fib_from_c_opt.py
Time:0.04542684555053711[sec]
$ python matmul.py
Python:7.10671[sec]
C(FFI):0.03292[sec]
numpy :0.02811[sec]