tagged [benchmarking]

Why is List<>.OrderBy LINQ faster than IComparable+List<>.Sort in Debug mode?

Why is List.OrderBy LINQ faster than IComparable+List.Sort in Debug mode? I was interested in whether it would be faster to sort my classes using LINQ, or by implementing the IComparable interface and...

26 Jul at 10:45

Why does C# execute Math.Sqrt() more slowly than VB.NET?

Why does C# execute Math.Sqrt() more slowly than VB.NET? ### Background While running benchmark tests this morning, my colleagues and I discovered some strange things concerning performance of C# code...

20 Jun at 09:12

Why is .NET faster than C++ in this case?

Why is .NET faster than C++ in this case? That is key. -edit- I LOVE SLaks comment. "The amount of misinformation in these answers is staggering." :D Calm down guys. Pretty much all of you were wrong....

23 May at 10:27

Why is reading lines from stdin much slower in C++ than Python?

Why is reading lines from stdin much slower in C++ than Python? I wanted to compare reading lines of string input from stdin using Python and C++ and was shocked to see my C++ code run an order of mag...

IHttpHandler versus HttpTaskAsyncHandler performance

IHttpHandler versus HttpTaskAsyncHandler performance We have a webapp that routes many requests through a .NET IHttpHandler (called proxy.ashx) for CORS and security purposes. Some resources load fast...

Weird performance increase in simple benchmark

Weird performance increase in simple benchmark Yesterday I found an [article by Christoph Nahr titled ".NET Struct Performance"](http://kynosarges.org/StructPerformance.html) which benchmarked several...

19 Nov at 16:15

Is my method of measuring running time flawed?

Is my method of measuring running time flawed? Sorry, it's a long one, but I'm just explaining my train of thought as I analyze this. Questions at the end. I have an understanding of what goes into me...

23 May at 10:33