Re: Why is C# 450% slower than C++ on nested loops ??




"Joanna Carter [TeamB]" <joanna@xxxxxxxxxxxx> wrote in message
news:OM$Dec$CGHA.748@xxxxxxxxxxxxxxxxxxxxxxx
> "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx> a écrit dans le message
> de news: OP9VnO$CGHA.2820@xxxxxxxxxxxxxxxxxxxxxxx
>
> | I know why but I don't care, these benchmarks are clueless and they are
> | broken, compile the C# code with /checked+ (check overflow on) and watch
> the
> | exceptions getting thrown on you.
>
> Can I ask whether these benchmarks were taken from C# code on first run
> (including JITting) or after it has been JITted ? It is only sensible to
> exclude the JIT process if you are comparing execution times as, after the
> first execution, times get a great deal faster due to the code now being
> natively compiled.

It must have been after the JIT, because C# beat C++ on some things, just not
the nested loops. The author of the link would know relatively obvious things
such as this.

>
> Joanna
>
> --
> Joanna Carter [TeamB]
> Consultant Software Engineer
>
>


.



Relevant Pages

  • Re: Why is C# 450% slower than C++ on nested loops ??
    ... > | I know why but I don't care, these benchmarks are clueless and they are ... > exclude the JIT process if you are comparing execution times as, ... > Joanna Carter ... (compiling the static di-unction takes less than a millisec. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Why is C# 450% slower than C++ on nested loops ??
    ... compile the C# code with /checked+ and watch ... Can I ask whether these benchmarks were taken from C# code on first run ... exclude the JIT process if you are comparing execution times as, ... Joanna Carter ...
    (microsoft.public.dotnet.languages.csharp)

Loading