iai
Experimental one-shot benchmarking/profiling harness for Rust (by bheisler)
tree-buf
An experimental serialization system written in Rust (by That3Percent)
Our great sponsors
iai | tree-buf | |
---|---|---|
9 | 3 | |
559 | 252 | |
- | - | |
0.0 | 0.0 | |
11 months ago | about 1 year ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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
Posts with mentions or reviews of iai.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-03.
-
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.
tree-buf
Posts with mentions or reviews of tree-buf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-11.
-
rkyv is faster than {bincode, capnp, cbor, flatbuffers, postcard, prost, serde_json}
I think this is great. Could you add tree-buf as well to your benchmarks?
-
Introducing the Firestorm profiler
I should probably write some examples. If you need some right now you can see instrumenting in https://github.com/That3Percent/tree-buf and profiling in https://github.com/That3Percent/tree-buf-benches. Those haven't been updated to use the latest version of Firestorm yet though.
-
Blog post: (I want) A Better Rust Profiler
First, it's extremely low overhead. I created it for TreeBuf after finding that the existing intrusive profilers available were introducing so much overhead and noise into the result as to make the output flamegraphs meaningless. When you're working on code that is supposed to be the fastest in it's class, you need a profiler with the same ideals.
What are some alternatives?
When comparing iai and tree-buf you can also consider the following projects:
rust-socketio - An implementation of a socket.io client written in the Rust programming language.
rkyv - Zero-copy deserialization framework for Rust
TinyTemplate - A small, lightweight template engine
bytecheck - Memory validation framework for Rust
scribble - An experimental terminal text-editor written in Rust. ⚠️
tracy - Frame profiler
bfc-rs - Brainfuck compiler for x86-64 Linux implemented in Rust.
rust-serialization-benchmarks
firestorm - A fast intrusive flamegraph
hotspot - The Linux perf GUI for performance analysis.
rust_serialization_benchmark - Benchmarks for rust serialization frameworks