News for hackers. Stuff that matters.
Re:Making a parallel Rust workload 10x faster with (or witho... by ModernMech on Tuesday December 03, 2024 @08:39PM (#42313705)
Per the article's "Using the right profiling tools", I have gone through a similar profiling journey in Rust and found this tool very useful: https://superluminal.eu/rust/

Works on Windows, has a great GUI, shows pretty flame charts, really pleasant to use. Costs money but worth it.

Re:Making a parallel Rust workload 10x faster with (or witho... by yazzku on Tuesday December 03, 2024 @10:02PM (#42314135)
Superluminal is a sampling profiler for the most part. It works great for what it does, sure. But in the author's own words:

> So far, we’ve only used perf to record stack traces at a regular time interval. This is useful, but only scratching the surface.

For cache hits and other counters, you're gonna have to go deeper than just sampling.

Re:Making a parallel Rust workload 10x faster with (or witho... by datadeft on Wednesday December 04, 2024 @07:50AM (#42316937)
How would you go about cache hits instead of using a sampling profiler? Would you use eBPF / BCC?
Re:Making a parallel Rust workload 10x faster with (or witho... by freeone3000 on Wednesday December 04, 2024 @09:21AM (#42317641)
The article describes using strace and perf in the paragraph after.
Re:Making a parallel Rust workload 10x faster with (or witho... by datadeft on Wednesday December 04, 2024 @07:48AM (#42316927)
> Superluminal is the new industry-standard profiling tool.

Never heard of it and I do a lot of performance related work. Is Superluminal really that popular?

Re:Making a parallel Rust workload 10x faster with (or witho... by ModernMech on Wednesday December 04, 2024 @09:48AM (#42317932)
I don't think it's popular but it really worked great for me!
Re:Making a parallel Rust workload 10x faster with (or witho... by mgoetzke on Wednesday December 04, 2024 @09:20AM (#42317629)
Sadly only for windows though
Re:Making a parallel Rust workload 10x faster with (or witho... by msz-g-w on Friday December 06, 2024 @02:33PM (#42343375)
They are working on a Linux port.