79 Languages speed competition: Can we make Fortran win?

Just an Update for gfortran 12 (march= native -O3).
(Since the previous measurements
updated from Ubuntu 04.20 to Ubuntu 04.22.)

solution_1 One bit per digit (stored in int64 variables), not object oriented, shown in video

12368

Object-oriented with bit array, fully meets the ‘faithful’ criteria of the comparison

12588

Object-oriented, one 8-bit Integer per number

17632

Object-oriented, one Logical per number

12328

So there were no drastic changes since gfortran-11. I know that these were rather toy benchmark but I wanted to add the gfortran 12 results for completeness.

2 Likes

Hello @Jweber,

Where is stored the most up to date source code linked to the above results? (July 2022)

Thank you
BR

1 Like

Here:

This repository contains all languages, so you may copy only the Fortran code. Please write me if you have additional questions.

1 Like

Thank you