Re:Golang vs. C# (.NET 5.0) at Benchmarks Game
by merb on Wednesday August 25, 2021 @06:03PM
(#28307704)
well asp.net core is not really minimal or idomatic.
it pulls a whole framework your code doesn't do a lot of things that asp.net core would do. sadly since nancyfx died there arent that many c# http framework that are as lightweight as the golang once. asp.net core is more like java spring btw.
nowdays most c# http frameworks do call
`<FrameworkReference Include="Microsoft.AspNetCore.App" />` which is really really big compared to just Microsoft.NETCore.App most often the defaut aspnetcore also configures a "secure" application (working cors, etc.)
It basically just loads a JSON file into memory then allows you to query the data with 2 API endpoints.
[1] - https://github.com/J-Swift/GamesDbMirror-go