8 ms·
What web framework is this on?
by anfroid555 10y ago
What web framework is this on?
- killercup 10y agoIron, apparently: https://github.com/dirk/metrics_distributor/blob/d29c897d156d7aa335561deaf2ae90b15da4ca80/Cargo.toml https://github.com/dirk/metrics_distributor/blob/d29c897d156...
- IshKebab 10y agoWhich has very disappointing benchmarks at the moment - even slower than some Python and Ruby stacks: https://www.techempower.com/benchmarks/#section=data-r12&hw=peak&test=plaintext https://www.techempower.com/benchmarks/#section=data-r12&hw=... I'm not sure why this is - I've Googled to no avail - but it is rather worrying.
- andrewflnr 10y agoWhen you see Rust being "slower than Ruby" it's usually because you forgot to turn off debug mode.
- frewsxcv 10y agoLooks like they use build with release mode: https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Rust/iron/setup.sh https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...
- steveklabnik 10y agoSo it's important to not compare master to when the benchmark was posted; remember, they do them at a certain time, then work happens. So like, I sent a PR to update Rust from 1.0 to 1.6 at one point, for example. That said, I don't think that missing out on --release was the issue here, as far as I know, it has always been on.
- steveklabnik 10y agoI've been doing some work on these benchmarks. They appear really slow to me as well; I found the environment really hard to set up, though, so I haven't quite figured out how to identify why they're this way.
- Lewisham 10y agoI'm surprised people can use Iron at all. I tried really really hard to use it and found the complete lack of documentation (or, worse, outdated blog posts) made it impossible. Is there some magic necronomicon I'm missing? I had better luck with nickel.rs because it has an examples/ folder with quick recipes of most things you'd want to do.
- PascalW 10y agoMy experience exactly. Nickel.rs has a fairly good set of clear examples on its website and then some more on Github. Unfortunately it seems to be a common trend that Rust projects only provide API docs. While that can be useful I find more 'high level' docs much more helpful especially when you're new to the language and/or framework.
- steveklabnik 10y agoWe are in the early stages of having an official docs team; one of the things we want to do is figure out how to encourage better ecosystem docs. Towards that end, right now is the first "doc days": https://facility9.com/2016/06/announcing-rust-doc-days/ https://facility9.com/2016/06/announcing-rust-doc-days/ we'll be focusing on the rust-lang-nursery crates this time, but will focus on the ecosystem ones in the future! EDIT: Oh, and I've wanted a good way for Cargo to produce additional, non-API docs through a top-level "docs" directory, but haven't found the time to properly implement it yet :/
- PascalW 10y agoBetter tooling will definitely help but I think it will mainly come to focus and priority. Some packages like Serde for example do provide higher level docs located with the API docs which can work fine.