#local-server #bandwidth #latency #networking #limitation #simulation

bin+lib yocalhost

an http development server that simulates latency and bandwidth limitations

5 releases (3 breaking)

0.4.1 Dec 1, 2023
0.4.0 Nov 16, 2023
0.3.0 Sep 15, 2023
0.2.0 Sep 7, 2023
0.1.0 Sep 4, 2023

#525 in HTTP server

Download history 7/week @ 2024-02-26 17/week @ 2024-03-11 79/week @ 2024-04-01

96 downloads per month
Used in 2 crates

MIT/Apache

21KB
425 lines

localhost too fast? try yocalhost.

yocalhost is an http development server that simulates latency and bandwidth limitations.

Evaluating a network client against a remote host is subject to the whim of the rest of the internet. Especially if your client involves many requests, it can be hard to get consistent measurements.

Evaluating against a naive localhost server, where latency and bandwidth are unreasonably fast, can draw a false picture.

With yocalhost, you run a local http server, but specify artificial bandwidth and latency limitations. This allows you to measure realistic(ish) implications of latency and bandwidth on your code in a reproducible way.

Dependencies

~11–22MB
~288K SLoC