mdmaas / julia-numpy-fortran-test

Comparing Julia vs Numpy vs Fortran for performance and code simplicity

Home Page:https://www.matecdev.com/posts/numpy-julia-fortran.html

Repository from Github https://github.commdmaas/julia-numpy-fortran-testRepository from Github https://github.commdmaas/julia-numpy-fortran-test

julia-numpy-fortran-test

Comparing Julia vs Numpy vs Fortran for performance and code simplicity

Julia vs Numpy vs Fortran performance tests.

Usage

sh make.sh
./f_standalone
./f_mkl
sh run_julia.sh
python3 test_f2py.py
python3 test.py

Download and install MKL:

cd /tmp
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
sudo sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list'
sudo apt-get update
sudo apt-get install intel-mkl-64bit-2018.2-046

Link to MKL

export MKLROOT=/opt/intel/mkl
export LD_LIBRARY_PATH=LD_LIBRARY_PATH:/opt/intel/mkl/lib/intel64

About

Comparing Julia vs Numpy vs Fortran for performance and code simplicity

https://www.matecdev.com/posts/numpy-julia-fortran.html

License:MIT License


Languages

Language:Fortran 36.4%Language:Python 35.8%Language:Julia 18.4%Language:Shell 9.4%