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



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

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 ??
    ... > | 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 ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: 7.0 CPU and Memory Performance
    ... Before doing this, I wanted to take some benchmarks to see how the scripts that I would run would fare between the two versions, and the results are somewhat confusing... ... Statically compile the 5.4 binary, and run the same binary on both ... Robert N M Watson ... Now, I really don't know exactly what the ubench program is doing, but I think the description says that it is doing random integer and floating point operations for the CPU tests, and random memory allocation and copying for the memory test. ...
    (freebsd-performance)
  • Re: 7.0 CPU and Memory Performance
    ... I wanted to take some benchmarks to see how the scripts ... Statically compile the 5.4 binary, and run the same binary on both ... And a rerun of the FreeBSD 7.0 ubench making sure there is absolutely no activity on the box ... The author's description of his benchmark doesn't inspire confidence: it does "rather senseless memory allocation and memory to memory copying operations for another 3 mins concurrently using several processes". ...
    (freebsd-performance)
  • Re: export
    ... >> depends on which programs you try to compile. ... > 6) I didn't write wxWindows, didn't run the benchmarks, and have no control ... Template instantiation speed can ... tested DMC++ against many template metaprograms if DMC++ can't compile ...
    (comp.lang.cpp)