Does SQLx really have more overhead in Rust than NET Entity Framework in C#?

122 points krlkv

If we assume the implementations are correct, SQLx seems to devastate Rust performance advantage over NET as measured by the TechEmpower Fortunes benchmark.

Adding EF to NET C# implementation seems to cost less than 3x in terms of lost performance (aspcore-ado-pg vs aspcore-mvc-ef-pg).

axum + postgresql = 438,996 vs axum + postgresql + sqlx = 42,945

That's 10x performance drop for Rust.

https://preview.redd.it/mr6m5pg8axrc1.png?width=2962&format=png&auto=webp&s=9c489a46921d8e4d75acebf53faa88a54506caa0