Shitty benchmark to see if this crate is even remotely useful or if file systems caches are actually enough.
Seems to work well for this specific case.
Using https://www.npmjs.com/package/static-server, a quick and easy server using node's http lib and async magic
A quick thing I use for dev purposes sometimes
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.
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
"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
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.)