4 ms·
Benchmark comparison should have used most popular* Web framework for each respective platform and include .NET too. *I could write a Web micro-framework with
by neonsunset 2y ago
Benchmark comparison should have used most popular* Web framework for each respective platform and include .NET too.
*I could write a Web micro-framework with U8String I'm working on or raw Span/Memory<byte> slices in C# with zero-copy request argument/body binding and beat all of these, would it be a representative experience compared to ASP.NET Core? No, because that's not would be used in an average scenario.
- hu3 2y agoYeah one could use https://github.com/walkor/workerman https://github.com/walkor/workerman for PHP and it would probably beat all other frameworks in the graph. Would it be a representative experience compared to PHP? No, because that's not would be used in an average scenario.
- neonsunset 2y agoIt would still be slower :P At least once you start "gaming" benchmarks interpreted and/or dynamically typed languages have a strict ceiling they can't really surpass (just.js doesn't count as it's as thin wrapper on top of C as it can get) https://www.techempower.com/benchmarks/#hw=ph&test=fortune§ion=data-r22 https://www.techempower.com/benchmarks/#hw=ph&test=fortune&s... (all top entries are bottlenecked by DB driver implementation and its ability to multiplex queries, and context switching cost, so those frameworks which can do perfect static partitioning and query multiplexing win out)