iai
fingine
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
iai
-
How to benchmark in Rust with libtest bench
The three popular options for benchmarking in Rust are: libtest bench, Criterion, and Iai.
-
Adding runtime benchmarks to the Rust compiler benchmark suite
Iai^1 uses CacheGrind^2 to count instructions
[1] - https://github.com/bheisler/iai
-
How to catch performance regressions in Rust
But, /u/bencherdev, please consider integrating iai measurements! By the same person behind criterion but designed for one-shot measurements that are stable in CI measurements.
-
Hey Rustaceans! Got a question? Ask here! (34/2022)!
Is lai no longer maintained? It hasn't had any commits in a year and a half.
-
[Question / Discussion] Why is .unwrap() so heavily discouraged?
Lately I've found that using unwrap_unchecked has nearly zero performance gain but all the UB to gain if you change the code one day. My source is iai which provides exact instruction counts and is entirely deterministic for any given execution (and almost-deterministic across different compilations of the same program).
-
[MEDIA] Which will perform faster, a trivial comparison in performance of two functions.
Have you tried criterion.rs or iai ? The first is great at micro benchmarks and, if it is not enough, the second can catch even smaller performance difference.
-
Blog post: (I want) A Better Rust Profiler
In the mean time maybe https://github.com/bheisler/iai could be of help
- Experimental one-shot benchmark framework using Cachegrind
-
What's everyone working on this week (1/2021)?
Well, the most interesting one is probably Iai; an experimental benchmark framework that runs all of the benchmarks in Cachegrind for much higher precision and repeatability than is possible with Criterion.rs. It's still a work-in-progress, so I haven't published it on Crates.io yet. See the readme for a more detailed discussion of the pros/cons relative to Criterion.rs.
fingine
-
What is your “I don't care if this succeeds” project?
I've been writing a library to help me forecast my personal finances accounting for taxes, various expenditures, income, and unexpected windfalls. I started because I noticed that whenever I tried to forecast my future, I kept repeating a lot of code and thought it would be better to just build out a library I could re-use. Plus, it's been a cool opportunity to learn Rust :)
Library if anyone's interested: https://github.com/RestitutorOrbis/finsim
-
What's everyone working on this week (1/2021)?
There's still a lot of work to be done so I wouldn't use it just yet but it's here: https://github.com/RestitutorOrbis/finsim
What are some alternatives?
rust-socketio - An implementation of a socket.io client written in the Rust programming language.
listudy - Listudy - chess training server
TinyTemplate - A small, lightweight template engine
tree-buf - An experimental serialization system written in Rust
shotcaller - A moddable RTS/MOBA game made with bracket-lib and minigene.
scribble - An experimental terminal text-editor written in Rust. ⚠️
ppp_thing - A poorly written, minimum viable PPPoE client with session handoff between redundant FreeBSD routers
bfc-rs - Brainfuck compiler for x86-64 Linux implemented in Rust.
firestorm - A fast intrusive flamegraph
pilka - Another live-coding tool for creating shader demos, Vulkan+Wgpu powered.