pretzelhammer/using-rust-in-non-rust-servers
View on GitHub ↗ ★ 17 Rust
3 mentions on Hacker News by 2 people: 0 stories, 3 comments · first 2024-10-28 · latest 2024-10-28
20082026
-
As the article mentions, the test server had 12 cores. The Node.js server ran in "cluster mode" so that all 12 cores were utilized during benchmarking. You can see the implementation here (just ~20 lines of JS):…
comment by pretzelhammer · 2024-10-28 · in Using Rust in non-Rust servers to improve performance -
Here's the list of my benchmark targets: https://github.com/pretzelhammer/using-rust-in-non-rust-serv... Vegeta, the tool I used for benchmarking, iterates through all those targets round-robin style while attacking the server and then…
comment by pretzelhammer · 2024-10-28 · in Using Rust in non-Rust servers to improve performance -
I believe the difference is that the JS version specifies compression strategy 3 (Z_RLE)[0][1], whereas the Rust crate is using the default compression strategy[2]. Both otherwise use the same underlying compression library (deflate aka…
comment by loeg · 2024-10-28 · in Using Rust in non-Rust servers to improve performance