forked from paulross/NotesOnCython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
21 lines (21 loc) · 742 Bytes
/
Copy path.travis.yml
File metadata and controls
21 lines (21 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
language: python
python:
- "2.7"
- "3.4"
before_install:
- sudo apt-get update -qq
- sudo apt-get install libatlas-dev libatlas3gf-base
install:
- pip install numpy
- pip install cython
- cd src
- python setup.py build_ext --inplace
script:
- python -m timeit -s "import Fibo" "Fibo.fib(30)"
- python -m timeit -s "import cyFibo" "cyFibo.fib(30)"
- python -m timeit -s "import cyFibo" "cyFibo.fib_int(30)"
- python -m timeit -s "import cyFibo" "cyFibo.fib_cdef(30)"
- python -m timeit -s "import cyFibo" "cyFibo.fib_cpdef(30)"
- python -m timeit -s "import Fibo" "Fibo.fib_cached(30)"
- python -m timeit -s "import cyStdDev; import numpy as np; a = np.arange(1e6)" "cyStdDev.cStdDev(a)"
- python FiboTimeit.py