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
  • Наука та технологія

КОМЕНТАРІ • 20

  • @deepg2477
    @deepg2477 Рік тому +14

    C++ completed it before I even noticed..

    • @resoftw
      @resoftw  10 місяців тому

      compiler optimization

  • @adriandragne5996
    @adriandragne5996 Рік тому +8

    Delphi uses many C++ .dll. Even C# use many C++.dll , i feel the meory

    • @resoftw
      @resoftw  10 місяців тому

      maybe..

  • @user-sy4ec3em5o
    @user-sy4ec3em5o 10 місяців тому +12

    C++ wins... again

  • @TarlanT
    @TarlanT 6 місяців тому +1

    This is dumb benchmark.
    Many languages will optimize the loop into a single line of printing the number computed at compile time.

    • @resoftw
      @resoftw  5 місяців тому

      that's it... the purpose of this video...

  • @moggar17
    @moggar17 Рік тому +1

    You can add FPC to test

    • @resoftw
      @resoftw  Рік тому +1

      yes.. next time.. I have no FPC installed..

    • @moggar17
      @moggar17 Рік тому +1

      @@resoftw
      Thanks

  • @pqsk
    @pqsk Рік тому +3

    I thought Delphi would be much more faster than c#. It is t that much faster

    • @resoftw
      @resoftw  Рік тому +1

      because of the compiler optimizaiton

    • @pqsk
      @pqsk Рік тому

      @@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.

    • @resoftw
      @resoftw  Рік тому +1

      @@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..

    • @pqsk
      @pqsk Рік тому

      @@resoftw 🤪 you're right. I completely forgot about that. 🤪

    • @jcbritobr
      @jcbritobr 10 місяців тому +1

      ​​@@resoftwdelphi can do that. Is a simple optimization that the most compilers can do, but needs to be activated

  • @user-ir6rt5ne9q
    @user-ir6rt5ne9q 4 місяці тому +1

    C++