r/csharp • u/alexyakunin • 5d ago
Blog Top .NET 11 RPC libraries vs 26 gRPC libraries from an updated grpc_bench (Rust, Go, Java, C++)
https://fusion.actuallab.net/posts/261116-grpc-benchDisclaimer: I am the author of ActualLab.Rpc and its RpcBenchmark, so I am not a neutral party. But the code is open source, and I welcome you to read it, run it, or evaluate with your AI agent.
I did my best to make the comparison fair - you can read about this in "Important Remarks" section.
13
Upvotes
4
u/hez2010 4d ago
Currently .NET 11 is suffering from a thread-pool scheduling issue that can affects performance dramatically. I think this will be fixed in near future and you might want to retest it at that time.
3
u/Praemont 4d ago
I considered using ActualLab.Rpc at one point, but the sheer number of transitive dependencie MessagePack, Newtonsoft.Json, CommunityToolkit, Reactive etc put me off. I doubt achieving NativeAOT compatibility would be straightforward with such a dependency stack.
2
u/alexyakunin 5d ago edited 4d ago
Any questions are welcome.
P.S. Thanks for anyone who asked!
2
u/Dunge 4d ago
I wonder why the native aot version is slower than the normal dotnet version? Isn't it supposed to be faster?
Also why only have a "single threaded" version of the nodejs grpc test?