C vs Python Speed Test: Counting to a Million - Which is Faster? #coding #python#programming#viral

preview_player
Показать описание
n this video, we conduct an exciting speed test between two popular programming languages: C and Python. Watch as we compare how long it takes for each language to count up to a million! 🚀 Discover the performance differences between compiled and interpreted languages, and see why C is known for its speed and efficiency. If you're a programmer or tech enthusiast curious about language performance, this video is for you! Stay tuned till the end for surprising results and insights! 🔍

Keywords: C vs Python, speed comparison, programming languages, C programming, Python programming, language performance, coding speed test, compiled vs interpreted, tech comparison, programming tutorial.
Комментарии
Автор

time in userspace - 0.407 in C vs 3.128 in Python

Slavasil
Автор

Haha now lets compare how long it took to write the code

Awesome vid btw i understand what people are talking about now with the speed

XEONFX
Автор

The reason why c code executed in the first place is beacuse the code directly runs on the bare metal hardware through the operating system but in case of python the code runs on the virtual machine which communicates with the operating system to run on bare metal hardware.

GalaxyHomeA
Автор

Writing something in console is taking a lot of resources and time (comparing to simple iterations). If you want to do test that compares speed it's better to just increment variable in every iteration and then print at the end.
Another thing is that you did same thing using different attitude - in c for and in python while which shoudn't happen. Of course if you'd test it in a way that is going to better show time differences it won't change a fact that c is faster but doing tests of things that are similar may show that percantage difference is much lower than in reality (writing in console) or even show that thing slower in reality is faster in test (different attitude)

Hope you don't feel criticized as I don't what to make you feel so 😀.

bartoszczerwinski
Автор

bro can you tell which theme(vs code extension) is this?

divyanshu
welcome to shbcf.ru