Python vs C++ vs C# Speed Comparison

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Protip - play the video at 2x speed to make python 2x faster

segtwo
Автор

Plot twist, C/C++ were bottlenecked by the shell and the output buffer.

Hardcore_Remixer
Автор

How to learn C++:
1. Make a variable.
2. Print a variable.
3. Do a math operation.
4. Question your life choices.
5. Learn the fundamentals of nature.
6. Find the point of existence.
7. Write a pointer which points to the creator of the heavens.
8. Manipulate the ram of you computer by pocking it with a screwdriver.
9. You have successfully finished your hello world program.

nolink
Автор

1.8 min (for ones who couldn't see)

asTRomi
Автор

this is a bad way to test the speed of a language. A better way would be for example a prime number checker between the range 0 to

notsaint
Автор

c is literally limited by the speed of how fast your system can print. dont flush the buffer every time you print and just use a \n instead and optimize with 03 and no language on earth can be faster than that

fun-damentals
Автор

u know the window with focus [C# in this example] gets hardware priority, thus your test are completly irrelevant

uiti
Автор

C# is optimised for sure c++ is the fastest language

Flamei
Автор

The industry is given a Turtle and a Ferrari to win a race.

"Lets use the turtle!" 🤦‍♂

Michael-itgb
Автор

What a masterclass in how to NOT make programming language benchmarks!

ggcc
Автор

That's not how you benchmark languages. The video is reeking of CS freshmen vibes

saadahmed
Автор

Fajnie widzieć, że w tym przypadku C# wyprzedza C++. Oczywiście mamy też Pythona. Jest on jednak około 9 razy wolniejszy niż pozostałe w tej kwestii.

Volupir
Автор

Was the c++ program optimized with -O?

weirdyadav
Автор

Use fprintf to see the true speed of each programming language. Console output is a huge bottleneck, especially when scrolling is involved.

kingluf
Автор

That's not the way to benchmark. There is a lot of I/O involved here.

moaazk
Автор

I think this is because Python is an interpreted language, while C# is a compiled one. C# takes more time to compile, but gives the computer straight away machine code that the computer reads faster. I don’t know about C ++, I heard more from this language only the name.

ynoiivf
Автор

We should not test the speed in this way. We should instead run a code to like check prime numbers from 2 - 10000 or find the LCM of a high count of numbers. Also, in computational technologies, we don't use seconds. We use the millisecond precision or more.

talkingmurga
Автор

Me : How is Python faster?!
Me @0:14 : Hello Doc? I need a refund on that Eye surgery, I’m going back to prescription Glasses.

emoluv
Автор

My ranking:
1 - python (easiest)
2 - C# (yeah i can code in it)
3 - C++ (Never learned)

CreateCG
Автор

This is stupid, don't you know that printing to cmd takes more time than adding all these numbers

noquality