Programming Language Speed Battle (C, Java, C++, Python, C#) - Counting Triples

Опубликовано: 02 Июль 2026
на канале: OttoBotCode
10,000
178

Which language is fastest (C, Java, C++, Python or C#)?

In this video 5 popular programming languages compete against each other in a speed battle. I've written the same program in all 5 languages and benchmarked them. The programs counts the number of triples in an array which sum to 0.

GitHub repository for the project:
https://github.com/OttoBotCode/Counti...

Chapters:
0:00 - The Contenders
0:15 - Competition Goal
0:29 - Counting Triples
1:51 - Disclaimer
2:34 - Round 1! (1000 elements)
3:20 - While Loops Faster??
4:02 - Round 2! (5000 elements)
4:54 - Round 3! (10,000 elements)
6:06 - Winners and Losers
6:41 - Surprise?