Commit 15b2f6db authored by Phil Austin's avatar Phil Austin

add cython_freeze to readme

parent ad7d3149
...@@ -12,15 +12,22 @@ ...@@ -12,15 +12,22 @@
python setup.py build_ext --inplace python setup.py build_ext --inplace
python -c 'import call_mymath;print(call_mymath.call_sinc(1))' python -c 'import call_mymath;print(call_mymath.call_sinc(1))'
To run one of the benchmarks for 10 iterations to compare cython and python:: To run one of the benchmarks for 10 iterations to compare cython and python timings::
cd benchmarks cd benchmarks
python setup.py build_ext --inplace
python nqueens.py -n 10 python nqueens.py -n 10
python -c 'import nqueens;print(nqueens.test_n_queens(10))' python -c 'import nqueens;print(nqueens.test_n_queens(10))'
To demo cython/bin/cython_freeze::
make
./nCr 10 5
./python
* Known failures * Known failures
* benchmarks/chaos.py failing for both python2 and python3 * benchmarks/chaos.py failing for both python2 and python3, excluded in setup.py
* embed and freeze work for python2, compile but fail for python3 * embed and freeze work for python2, compile but fail for python3
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment