News for hackers. Stuff that matters.
Re:Iceoryx2 v0.4: Incredibly Fast IPC Library for Rust, C++,... by abhirag on Sunday September 29, 2024 @02:46AM (#41685380)
At $work we are evaluating different IPC strategies in Rust. My colleague expanded upon 3tilley's work, they have updated benchmarks with iceoryx2 included here[0]. I suppose the current release should perform even better.

[0]: https://pranitha.rs/posts/rust-ipc-ping-pong/

Re:Iceoryx2 v0.4: Incredibly Fast IPC Library for Rust, C++,... by nh2 on Sunday September 29, 2024 @05:36AM (#41686105)
Interesting that on Linux Unix Domain Sockets are not faster than TCP.

People often say that the TCP stack overhead is high but this benchmark does not confirm that.

Re:Iceoryx2 v0.4: Incredibly Fast IPC Library for Rust, C++,... by jcelerier on Sunday September 29, 2024 @08:19AM (#41686810)
I'm curious about the benchmark. In my own for another network IPC library (https://GitHub.com/ossia/libossia) Unix sockets were consistently faster than the alternatives when sending the same payloads.
Re:Iceoryx2 v0.4: Incredibly Fast IPC Library for Rust, C++,... by billywhizz on Sunday September 29, 2024 @09:44AM (#41687373)
the linux results are for a vm running on macos. not sure how useful that is. i certainly wouldn't draw any wider conclusions from them without trying to reproduce yourself. pretty sure they will be very different on bare metal.
Re:Iceoryx2 v0.4: Incredibly Fast IPC Library for Rust, C++,... by billywhizz on Sunday September 29, 2024 @09:56AM (#41687445)
i couldn't resist reproducing on bare metal linux (8th gen core i5, ubuntu 22.04):

  cargo run --release -- -n 1000000 --method unixstream
  cargo run --release -- -n 1000000 --method tcp
~9μs/op for unixstream, ~14μs/op for TCP.

unixstream utilizes two cores at ~78% each core, tcp only utilizes ~58% of each core. so there is also something wrong in the benchmarks where blocking is happening and cores are not being fully utilized.

Re:Iceoryx2 v0.4: Incredibly Fast IPC Library for Rust, C++,... by pranitha_m on Monday September 30, 2024 @09:23AM (#41696823)
Our prod env is comprised of cloud VMs so tried to replicate that. Have some benchmarks from prod env, will share those.
Re:Iceoryx2 v0.4: Incredibly Fast IPC Library for Rust, C++,... by hardwaresofton on Sunday September 29, 2024 @08:43AM (#41686956)
Excellent writeup! I performed just about the same test, but I didn't see 13M rps in my testing, shared memory went up to about 1M.

That said, I made sure to include serialization/deserialization (and JSON at that) to see what a realistic workload might be like.

Re:Iceoryx2 v0.4: Incredibly Fast IPC Library for Rust, C++,... by pranitha_m on Monday September 30, 2024 @09:14AM (#41696753)
Thanks! I am updating the benchmarks to take into account the different payload sizes as we speak, maybe we can discuss the difference in our methodologies and results then? I'll drop you a mail once updated.
Re:Iceoryx2 v0.4: Incredibly Fast IPC Library for Rust, C++,... by elBoberido on Sunday September 29, 2024 @05:12PM (#41690623)
Sweet. Can we link to your benchmark from the main iceoryx2 readme?
Re:Iceoryx2 v0.4: Incredibly Fast IPC Library for Rust, C++,... by pranitha_m on Monday September 30, 2024 @09:16AM (#41696769)
Alright, I am updating the benchmarks for the newest release, I'll open a PR once done.
Re:Iceoryx2 v0.4: Incredibly Fast IPC Library for Rust, C++,... by elBoberido on Monday September 30, 2024 @12:30PM (#41699064)
Thanks, really appreciate it.