2 ms·
Looks interesting, but the C# benchmark is horrible. There's no way a properly written C# program would take IIS + ASP.Net C# ............ 171.8 ms! A bare bon
by kellros 12y ago
Looks interesting, but the C# benchmark is horrible.
There's no way a properly written C# program would take IIS + ASP.Net C# ............ 171.8 ms! A bare bone Katana/OWIN self-hosted hello world echoing endpoint can easily surpass 5K+ req/s while the equivalent ASP.NET MVC hello world echoing endpoint can surpass 3.5K+ req/s with the standard routing.
I suspect the biggest contributor to the slowness is all that string concatenation - because every 'version' of a string is hashed and stored in memory e.g. "a" ["a"], "a" + "b" ["a","b","ab"] etc. (use StringBuilder or write directly to the output)
I suspect the Java benchmark also suffers due to this. (use StringBuffer)