E00: Software Drag Racing: C++ vs C# vs Python – Which Will Win?



Retired Microsoft Engineer Davepl writes the same ‘Primes’ benchmark in Python, C#, and C++ and then compares and explains the differences in the code before racing them head to head to see what the performance difference is like between the languages.

It appears the upload process does some volume leveling or loudness, so my apologies if you get startled during the into. It was mixed down in the master, honest 🙂

Thanks to the Simpsons for the inevitable reference or two that I throw in now and then! See if you can spot both in this episode!

0:00 Start
2:08 The Primes Assignment
6:25 How a Sieve Works
7:32 Coding Begins
9:00 Python Version
12:50 C# Version
18:25 C++ Version
22:22 Charts and Graphs
23:17 Outtakes

I’ve placed the code up on GitHub for your reference without any warranty for any purpose!
https://github.com/davepl/Primes

I get a lot of questions about which keyboard I’m using as well as various other camera and studio equipment questions, so here are the highlights:

CORSAIR K70 RGB MK.2 Mechanical Gaming Keyboard (Cherry MX Blue Switches)
https://amzn.to/31UrUUD

Sony FX3 or A7SIII Cameras
https://amzn.to/31TRdWK
https://amzn.to/3wG9iG7

Aputure 120D Mark II Light and Light Dome II Mini
https://amzn.to/3uya8Ts
https://amzn.to/31XwBx2

Glide Gear TMP100 Prompter
https://amzn.to/3ux84Ll

Comments are closed.