3 ms·
It produces best performance OOB with minimal API way of registering your endpoints. Which is expected to be the default way for many newcomers to the framework
by neonsunset 4y ago
It produces best performance OOB with minimal API way of registering your endpoints. Which is expected to be the default way for many newcomers to the framework. On 5800X, hello world with some logic and cached JSON output (not raw bytes but actual response object so no cheating) produces over 4GB/sec when benchmarked over localhost on .NET 7.
Host: https://gist.github.com/neon-sunset/767cb0693c3ff222f78b236c9904a3fc https://gist.github.com/neon-sunset/767cb0693c3ff222f78b236c...
HTTP Benchmark: https://gist.github.com/neon-sunset/d936e54bfec1031d1628c338be4a7f5d https://gist.github.com/neon-sunset/d936e54bfec1031d1628c338...