realworld-axum-sqlx
criterion.rs
realworld-axum-sqlx | criterion.rs | |
---|---|---|
12 | 30 | |
676 | 4,170 | |
3.6% | - | |
0.0 | 6.5 | |
4 months ago | 9 days ago | |
Rust | Rust | |
GNU Affero General Public License v3.0 | 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.
realworld-axum-sqlx
-
Hey Rustaceans! Got a question? Ask here (7/2023)!
This was one of the objectives when we created https://github.com/launchbadge/realworld-axum-sqlx
-
Hey Rustaceans! Got a question? Ask here! (28/2022)!
Clap can actually load values from the environment now: https://github.com/launchbadge/realworld-axum-sqlx/blob/main/src/config.rs
-
Entrait v0.3.2
I'm working on a PoC to rewrite the realworld app from launchbadge to use entrait: https://github.com/audunhalland/rust-realworld-ioc/ (work in progress), maybe it can be used as inspiration.
-
A(nother) Realworld implementation: tokio, axum, and sqlx
While there already exists a fantastic implementation of the spec written by the sqlx authors, I wanted to use this as a Rust playground for myself and others to poke around the ecosystem. I'm sure there's quite a bit of room for improvement, and I'm looking forward to opening this up for those in a similar boat and learning Rust.
-
Hey Rustaceans! Got a question? Ask here! (25/2022)!
I'm following some examples for creating a server with Axum like realworld-axum-sqlx and customize-extractor-error. The second one shows how to get request errors related to json and I'd like to know if there's anyway to make the where clause more error-proof.
-
Code review request
I've just migrated from actix-web to axum, so it's the backend that I'm interested in people's thoughs on. I've taken a fair amount of design inspiration from the realworld-axum-sqlx project.
-
The Rustacean way to build a complete web app?
Here is a realworld-spec in Axum: https://github.com/launchbadge/realworld-axum-sqlx
-
Backend using rust
https://github.com/launchbadge/realworld-axum-sqlx is Axum based implementation of the Realworld specification
-
Tools to generate type safe code models from Postgres schema?
Here's an example codebase using these features: https://github.com/launchbadge/realworld-axum-sqlx/blob/main/src/http/articles/listing.rs
-
Web development
Realworld Spec with Axum
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?
zero-to-production - Code for "Zero To Production In Rust", a book on API development using Rust.
hyperfine - A command-line benchmarking tool
workers-rs - Write Cloudflare Workers in 100% Rust via WebAssembly
sqlglot - Python SQL Parser and Transpiler
docker-rust - The official Docker images for Rust
glassbench - A micro-benchmark framework to use with cargo bench
realworld - "The mother of all demo apps" — Exemplary fullstack Medium.com clone powered by React, Angular, Node, Django, and many more
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.
Seed - A Rust framework for creating web apps
tracing - Application level tracing for Rust.
validator - Simple validation for Rust structs
tungstenite-rs - Lightweight stream-based WebSocket implementation for Rust.