Re: Why is C# 450% slower than C++ on nested loops ??
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Wed, 28 Dec 2005 23:35:55 +0100
"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.
>
> Joanna
>
> --
> Joanna Carter [TeamB]
> Consultant Software Engineer
>
>
The timer is started when the function runs so after it's been compiled
(compiling the static di-unction takes less than a millisec. anyway).
Willy.
.
- References:
- Why is C# 450% slower than C++ on nested loops ??
- From: Peter Olcott
- Re: Why is C# 450% slower than C++ on nested loops ??
- From: Willy Denoyette [MVP]
- Re: Why is C# 450% slower than C++ on nested loops ??
- From: Joanna Carter [TeamB]
- Why is C# 450% slower than C++ on nested loops ??
- Prev by Date: Re: Can you write code directly in CIL ???
- Next by Date: Re: Can you write code directly in CIL ???
- Previous by thread: Re: Why is C# 450% slower than C++ on nested loops ??
- Next by thread: Re: Why is C# 450% slower than C++ on nested loops ??
- Index(es):
Relevant Pages
|