site
criterion.rs
site | criterion.rs | |
---|---|---|
6 | 30 | |
8 | 4,170 | |
- | - | |
2.9 | 6.5 | |
almost 2 years ago | 12 days ago | |
Go | Rust | |
GNU General Public License v3.0 only | Apache License 2.0 |
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.
site
-
Hey Rustaceans! Got a question? Ask here! (25/2022)!
Yes. That's what I do. My actual site is in Go and uses a Post struct, but first I have to check if the text file has each field.
-
Hey Rustaceans! Got a question? Ask here! (24/2022)!
I started reading the rust book and am trying to reimplement some things similar to my site that i made using Go.
- Site pessoal: inglês ou português?
-
Why is this switch case not working?
Here is the full code
-
Is there a cleaner way of doing this nested for range loop?
I'm writing a new version of my website in Go (full code here) and i implemented tags for my posts.
-
Criar um site para postar projetos do zero ou pegar um já criado e personalizar?
Eu to criando do zero: https://github.com/crdpa/site
criterion.rs
-
How to benchmark in Rust with libtest bench
The three popular options for benchmarking in Rust are: libtest bench, Criterion, and Iai.
-
Divan: Fast and Simple Benchmarking for Rust
Holy crap. I was just writing a blog to complain about the state of Rust benchmarking and I think this might address most of my points. The biggest one is the ability to have benchmarks collocated within the library like tests which is the biggest annoyance.
It’s also nice to see that it can report multiple counters in parallel. I put up a similar feature[1] for criterion recently but I fear the project isn’t being maintained anymore…
Haven’t looked deeply into divan yet but the other requirements I have for criterion’s power is to run tests with statistical guarantees on the results, terminate quickly when statistical significance is reached (—quick), provide a comparison of the delta from a previous benchmark, and to run async code. Wonder how this stacks up.
[1] https://github.com/bheisler/criterion.rs/pull/722
-
how expensive is an operation?
criterion for benchmarks,
- Autometrics 0.4: Spot commits that introduce errors or slow down your application
- Performance-related question
-
How can I further optimize this file parser? (std, serde, diesel)
For an extra optimization, you might look into techniques like branchless code, turning array of structs into struct of arrays for better cache utilization/lowering branch mispredictions. There is many talks on YouTube how to actually measure and improve performance of native code. And for rust there is a criterion.rs for benchmarking.
- making a virtual machine in rust
-
How much does Rust's bounds checking cost?
https://github.com/bheisler/criterion.rs is good for tests like that. It will give you much more than a single number and handle things like outliers. This makes identifying noisy tests simpler.
-
Tips in using criterion to properly benchmark a database?
I have tried many ways but I think is not possible. I put it on https://github.com/bheisler/criterion.rs/issues/631.
-
Rust 1.64 Became 10-20% Faster On Windows
Criterion is still the gold standard.
Pros for Criterion over the stdlib: https://github.com/bheisler/criterion.rs#features
Downsides of Criterion: https://bheisler.github.io/criterion.rs/book/user_guide/know...
What are some alternatives?
softbuffer - Softbuffer integrates with the raw-window-handle crate to allow writing to a window in a cross-platform way while using the very high quality dedicated window management libraries that are available in the Rust ecosystem.
hyperfine - A command-line benchmarking tool
client_rust - Prometheus / OpenMetrics client library in Rust
sqlglot - Python SQL Parser and Transpiler
lapce - Lightning-fast and Powerful Code Editor written in Rust
glassbench - A micro-benchmark framework to use with cargo bench
RustBooks - List of Rust books
sccache - Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
weird-move-behaviour-reproduction
tracing - Application level tracing for Rust.
rust - Empowering everyone to build reliable and efficient software.
tungstenite-rs - Lightweight stream-based WebSocket implementation for Rust.