3 ms·
Actually in this case async is the only way to get sane performance and both drivers deliver excellent performance thanks to async. I've been using Scylla Rust
by pkolaczk 4y ago
Actually in this case async is the only way to get sane performance and both drivers deliver excellent performance thanks to async. I've been using Scylla Rust driver in my C* benchmarking project and it is an order of magnitude faster than the tools which use threads.
https://github.com/pkolaczk/latte https://github.com/pkolaczk/latte
- raverbashing 4y agoCool, good to know. I know threads are a limiting factor, but sometimes people jump into async while the problem is somewhere else
- pkolaczk 4y agoIn this case each request is very tiny amount of work on the client, so waking up a thread to do that work just to immediately block waiting on the response from the server is very wasteful. With async you can send hundreds of requests in a simple loop, on a single thread. It's not only more efficient but also actually easier to write.