New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make this fst-er #2
Conversation
It's noticeably slower, but this is the generating step. It should need to be *super* fast.
Shitty benchmark to see if this crate is even remotely useful or if file systems caches are actually enough. tl;drSeems to work well for this specific case.
DetailsI benchmarked
NodeUsing https://www.npmjs.com/package/static-server, a quick and easy server using node's http lib and async magic
PHPA quick thing I use for dev purposes sometimes
sfz (Rust)10s of searching turned up https://crates.io/crates/sfz which is based on hyper and tokio, just like this crate. Installed it via homebrew.
miniserve (Rust)sfz seemed slow, so I looked further and found https://crates.io/crates/miniserve, based on actix-web. I downloaded the osx binary from https://github.com/svenstaro/miniserve/releases/tag/v0.2.0. Sadly, I was not able to get the arrayvec index page, I only got the file listing. So, I cloned the repo, ran
Caddy (Go)"Big league" server, written in Go, has lots of features, well-tuned, but is still super easy to install via homebrew.
Note: I didn't notice at first, but
static-filez
|
Quick addendum: This is the speed of hyper's hello world (literally copied from https://hyper.rs/):
Seems like we're not adding much on top of that! (So it'd actually be futile to optimize this anymore.) |
cf. #1