Count 1 Billion - Who's the fastest? Python vs C# vs Delphi vs C++ Performance
Вставка
- Опубліковано 22 гру 2022
- How long it takes to count 1 billion in four languages: Python, C#, Delphi and C++
#shorts #asmr #programming #coding #benchmark #fastest #computer #language #python #csharp #delphi #cplusplus #viral #comparison #fastest #speedtest - Наука та технологія
C++ completed it before I even noticed..
compiler optimization
Delphi uses many C++ .dll. Even C# use many C++.dll , i feel the meory
maybe..
C++ wins... again
🤣
This is dumb benchmark.
Many languages will optimize the loop into a single line of printing the number computed at compile time.
that's it... the purpose of this video...
You can add FPC to test
yes.. next time.. I have no FPC installed..
@@resoftw
Thanks
I thought Delphi would be much more faster than c#. It is t that much faster
because of the compiler optimizaiton
@@resoftw oh yes I figured. I've been working with c# for over 10 years. Actually started playing with it back in 2003, but it wasn't until around 2009 that I really started to use it professionally. Optimizations are amazing, but from everything I've heard I just thought Delphi was closer to C.
@@pqsk ofcourse, delphi ic closer to C, the generated machine code can sometime better than c/c++.. but the microsoft's compiler optimization removes unnecessary codes like in this case, it just prints the result without doing the actual loop..
@@resoftw 🤪 you're right. I completely forgot about that. 🤪
@@resoftwdelphi can do that. Is a simple optimization that the most compilers can do, but needs to be activated
C++
👍