Julia: Fast as Fortran, Beautiful as Python

I have done some simple bench marking of Python against Fortran, C++ and Java.

The source files can be found at

http://www.rhymneyconsulting.co.uk/python/examples/

c2701.py
c2702.f90
c2703.cxx
c2704.java

A spreadsheet with the timing is also available

27.xls

at the above site in the same directory.

                 Python     Fortran            C++                  Java
                            Nag       Intel    Microsoft  g++  
                 3.6.5      6.2       19       17.x       7.3.0     1.8.0_131

Initialisation   12.314372  0.433094  0.589469 0.394777   0.420932  0.609
            
Summation        14.283259  0.125     0.132813 0.148464   0.158285  0.164
            
Total            26.597631  0.558094  0.722282  0.543241  0.579217  0.773
Percentage                  2.10%     2.72%     2.04%     2.18%     2.91%

2 Likes