Why MC++ is faster then C# ?

  • Thread starter Thread starter Gawelek
  • Start date Start date
G

Gawelek

I made some benchmarks and MC++ is much faster then C#.
They should be compiled to the same TYPE of code and therefore
their performance should be +- equal. Can sombody explain me this thing ?
 
Gawelek said:
I made some benchmarks and MC++ is much faster then C#.
They should be compiled to the same TYPE of code and therefore
their performance should be +- equal. Can sombody explain me this thing ?

We'd have to see your benchmarks first. There may well be a few things
where MC++ is much faster than C# (even if only because of different IL
optimisations) but in general they will be roughly the same speed.
 
Gawelek said:
I made some benchmarks and MC++ is much faster then C#.
They should be compiled to the same TYPE of code and therefore
their performance should be +- equal. Can sombody explain me this thing ?
What kind of C++ application are you comparing to C#?
If you're using the Win API, MFC or the STL, that's very different from the
..NET Framework classes and you're comparing apples to oranges.
The only way I know to accurately compare (using the same classes) would be
to create a C++ Windows Forms project, then replicate it in C#.
 
Hi Gawalek,

I did a test.

I did in C#
threading.threading.sleep(1000).

and also in C++.


It did with both take 1 second.

Cor
 
Back
Top