# An interesting video: Python vs Fortran vs GNU Octave/MATLAB --- side by side performance comparison

**URL:** <https://fortran-lang.discourse.group/t/an-interesting-video-python-vs-fortran-vs-gnu-octave-matlab-side-by-side-performance-comparison/2518>\
**Category:** Uncategorized\
**Created:** [January 5, 2022, 11:28pm UTC](https://fortran-lang.discourse.group/t/an-interesting-video-python-vs-fortran-vs-gnu-octave-matlab-side-by-side-performance-comparison/2518 "2022-01-05T23:28:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fortran4r](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@fortran4r](https://fortran-lang.discourse.group/u/fortran4r)\
**Post date:** [January 5, 2022, 11:28pm UTC](https://fortran-lang.discourse.group/t/an-interesting-video-python-vs-fortran-vs-gnu-octave-matlab-side-by-side-performance-comparison/2518/1 "2022-01-05T23:28:42Z")

</div>

[![]( " - YouTube") ](https://www.youtube.com/watch?v=aWvuvr7KwtA)

---

<div class="post-metadata">

**Author:** ![CRquantum](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/crquantum/32/730_2.png) [@CRquantum](https://fortran-lang.discourse.group/u/CRquantum)\
**Post date:** [January 6, 2022, 12:51am UTC](https://fortran-lang.discourse.group/t/an-interesting-video-python-vs-fortran-vs-gnu-octave-matlab-side-by-side-performance-comparison/2518/2 "2022-01-06T00:51:25Z")

</div>

Solid video by all standards. Love it. How about comparing with Julia, C/C++?

---

<div class="post-metadata">

**Author:** ![fortran4r](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@fortran4r](https://fortran-lang.discourse.group/u/fortran4r)\
**Post date:** [January 6, 2022, 1:24am UTC](https://fortran-lang.discourse.group/t/an-interesting-video-python-vs-fortran-vs-gnu-octave-matlab-side-by-side-performance-comparison/2518/3 "2022-01-06T01:24:06Z")

</div>

I’ve tried Julia on and off for the past 5 years but eventually gave it up. The reason is two-fold.

First, the built-in functions in R and Python are no slower than in Julia because they are written in compiled languages like C/C++/Fortran. See, eg., this thread:

> **[With Missings, Julia is slower than R](https://discourse.julialang.org/t/with-missings-julia-is-slower-than-r/11838/31)**
>
> there are always multiple levels of understanding to this story. In this case, a relevant point is: More importantly, in almost all cases, Julia can fix the problem by writing idiomatic Julia code, instead of MUST relying on C/C++/Fortran...

Combined with the packages that are written in compiled languages, R and Python are fast enough for most of my jobs.

Second, the notion that Julia solves the two-language problem is debatable. To get C/C++/Fortran performance, Julia codes can get very verbose and complicated. See, eg., this thread:

[https://flow.byu.edu/posts/julia-c++](https://flow.byu.edu/posts/julia-c++)

---

<div class="post-metadata">

**Author:** ![CRquantum](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/crquantum/32/730_2.png) [@CRquantum](https://fortran-lang.discourse.group/u/CRquantum)\
**Post date:** [January 6, 2022, 2:11am UTC](https://fortran-lang.discourse.group/t/an-interesting-video-python-vs-fortran-vs-gnu-octave-matlab-side-by-side-performance-comparison/2518/4 "2022-01-06T02:11:34Z")

</div>

LOL. We are on the same boat.  
When I see people have to manually add macros here and there in Julia code to speed it up, I realized that I may not be hooked to Julia.

---

<div class="post-metadata">

**Author:** ![samharrison7](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/samharrison7/32/3868_2.png) [@samharrison7](https://fortran-lang.discourse.group/u/samharrison7)\
**Post date:** [January 6, 2022, 9:16am UTC](https://fortran-lang.discourse.group/t/an-interesting-video-python-vs-fortran-vs-gnu-octave-matlab-side-by-side-performance-comparison/2518/5 "2022-01-06T09:16:22Z")

</div>

“And that’s why you don’t mess with Fortran” 🤣 Brilliant.

---

<div class="post-metadata">

**Author:** ![nshaffer](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/nshaffer/32/161_2.png) [@nshaffer](https://fortran-lang.discourse.group/u/nshaffer)\
**Post date:** [January 6, 2022, 12:56pm UTC](https://fortran-lang.discourse.group/t/an-interesting-video-python-vs-fortran-vs-gnu-octave-matlab-side-by-side-performance-comparison/2518/6 "2022-01-06T12:56:19Z")

</div>

Youtube recommends this guy’s videos to me all the time, and I wish it didn’t. If he’s going for humor, I wish he’d be a little more on-the-nose about it. It’s a little concerning to think that people are watching these and taking it seriously at all. It’s like a satire of the lazy language “benchmarks” you see everywhere, but it’s played straight enough that I don’t think it’s satire…
