Menu

1 / 9

Rust is not faster by default: how my .NET client got 33x ahead of the official Rust SDK

DEV Community: dotnet·Daniel·about 22 hours ago
#TveW9WH8
#devtodotnet#devto#dev#binance#rust
Reading 0:00
15s threshold

I open-sourced a Binance client for .NET 10. It's up to 33x faster per message than the official Binance Rust SDK, has 43x better p99.9 latency , and allocates zero bytes on the hot path.

Whenever I mention this, someone tells me Rust is fast by default and .NET is the managed, garbage-collected compromise. I've been building .NET systems for 25 years and I've never believed that. So I ran a benchmark that's hard to argue with.

Axitor / Trading.Gateway

Binance client for .NET 10, faster than every major Binance client in .NET and Rust. Zero allocations on the hot path, resilience built in, Native AOT ready. REST, WebSocket API, JSON and SBE streams, user data and local order books.

Axitor.Trading.Gateway

Faster than every major Binance client. In .NET, and in Rust.

A Binance gateway for .NET 10, built for trading bots where the slow message, the dead socket and the ban cost real money. Zero allocations on the hot path. Resilience in the core.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.