Skip to content

Instantly share code, notes, and snippets.

@scivision
Last active April 17, 2018 04:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scivision/18f6353714c20401d8b68a9f657f3b89 to your computer and use it in GitHub Desktop.
Save scivision/18f6353714c20401d8b68a9f657f3b89 to your computer and use it in GitHub Desktop.
Python-Performance reuslts
/RunMatmul.py
Fortran -->
GCC version 6.2.0
--param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=35840 -mtune=broadwell -march=x86-64 -auxbase-strip CMakeFiles/matmul.dir/matmul.f90.o -g -O3 -Wall -Werror=array-bounds -Wextra -Wpedantic
double DGEMM (sec): 0.753308
single SGEMM (sec): 25.260954
double intrinsic (sec): 0.411206
single intrinsic (sec): 0.206234
--> Julia 0.6.2
Trial(64.440 ms)
--> GDL
WARNING:root:GDL executable not found
--> IDL
IDL 8.6.0 (linux x86_64 m64).
% Compiled module: MATMUL.
matmul: 0.084970951 seconds.
--> Octave 4.0.2
0.79003 seconds for N=1000
--> Matlab 9.4
0.057896 seconds for N=1000
--> Python 3.6.3
0.051006 seconds for N=1000
./RunPisum.py
--> C
pisum: 4.686e-02 seconds pi=3.141592
--> Fortran. N= 1000000 using 1 images
GCC version 6.2.0
--param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=35840 -mtune=broadwell -march=x86-64 -auxbase-strip CMakeFiles/pisumfort.dir/pisum.f90.o -g -Wall -Werror=array-bounds -Wextra -Wpedantic
Iteration: 1.3808E-02 sec.
Mandelbrote: 1.1650E-03 sec.
pisum: 4.9062E-02 sec.
--> Julia 0.6.2
simple_iter
Trial(2.250 ms)
pisum
Trial(58.291 ms)
--> GDL
WARNING:root:GDL executable not found
--> IDL
IDL 8.6.0 (linux x86_64 m64).
% Compiled module: PISUM.
pisum: 2.7219009e-01 seconds. N= 1000000
--> Octave 4.0.2
simple_iter 0.033646 sec.
mandelbrot 0.11367 sec.
pisum 3.2266 sec.
--> Matlab 9.4
simple_iter 0.016493 sec.
mandelbrot 0.00098971 sec.
pisum 0.031376 sec.
--> Numba 0.36.2+0.g540650d.dirty
4.650e-02 seconds.
--> Python 3.6.3
5.436e-01 seconds.
--> Cython 0.27.3
2.818e-02 seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment