3 ms·
> Just wanted to fetch some things via http. Nothing fancy, didn't even really care about the response body, just the timings. why not bash and curl?
by SquishyPanda23 5y ago
> Just wanted to fetch some things via http. Nothing fancy, didn't even really care about the response body, just the timings.
why not bash and curl?
- justinsaccount 5y agoBecause I wanted to do other things with the timing data.
- tinco 5y agoWhy would you do it in Rust if you can do it in Go? Was there some realtime constraint in making the web request?
- justinsaccount 5y agoI was prototyping something that could monitor a few api endpoints in parallel, collect timing stats using sqlite, then output a static status page, statistics and graphs. Kind of like what smokeping does, just wanted to see what a from-scratch implementation that did just what I needed might look like. Ended up being about 400 lines. Only dependencies were go-sqlite and go-chart.