# 79 Languages speed competition: Can we make Fortran win?

**URL:** <https://fortran-lang.discourse.group/t/79-languages-speed-competition-can-we-make-fortran-win/3038>\
**Category:** Uncategorized\
**Created:** [March 24, 2022, 7:40am UTC](https://fortran-lang.discourse.group/t/79-languages-speed-competition-can-we-make-fortran-win/3038 "2022-03-24T07:40:01Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![Jweber](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@Jweber](https://fortran-lang.discourse.group/u/Jweber)\
**Post date:** [July 30, 2022, 3:39pm UTC](https://fortran-lang.discourse.group/t/79-languages-speed-competition-can-we-make-fortran-win/3038/41 "2022-07-30T15:39:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Fanch29](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@Fanch29](https://fortran-lang.discourse.group/u/Fanch29)\
**Post date:** [January 8, 2023, 1:53am UTC](https://fortran-lang.discourse.group/t/79-languages-speed-competition-can-we-make-fortran-win/3038/42 "2023-01-08T01:53:02Z")

</div>

Hello @Jweber,

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

Thank you  
BR

---

<div class="post-metadata">

**Author:** ![Jweber](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@Jweber](https://fortran-lang.discourse.group/u/Jweber)\
**Post date:** [January 9, 2023, 11:52am UTC](https://fortran-lang.discourse.group/t/79-languages-speed-competition-can-we-make-fortran-win/3038/43 "2023-01-09T11:52:52Z")

</div>

Here:

> **[GitHub - PlummersSoftwareLLC/Primes: Prime Number Projects in C#/C++/Python](https://github.com/PlummersSoftwareLLC/Primes)**
>
> Prime Number Projects in C#/C++/Python. Contribute to PlummersSoftwareLLC/Primes development by creating an account on GitHub.

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

---

<div class="post-metadata">

**Author:** ![Fanch29](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@Fanch29](https://fortran-lang.discourse.group/u/Fanch29)\
**Post date:** [January 15, 2023, 12:52am UTC](https://fortran-lang.discourse.group/t/79-languages-speed-competition-can-we-make-fortran-win/3038/44 "2023-01-15T00:52:17Z")

</div>

Thank you

[Previous page](https://fortran-lang.discourse.group/t/79-languages-speed-competition-can-we-make-fortran-win/3038.md?page=2)
