Crates.io | cloudflare-systems-assignment |
lib.rs | cloudflare-systems-assignment |
version | 0.2.2 |
source | src |
created_at | 2020-10-18 00:39:50.982054 |
updated_at | 2020-10-18 17:36:33.107957 |
description | A solution to cloudflare's systems engineering assignment in Rust |
homepage | https://github.com/tarikeshaq/cloudflare-2020-systems-engineering-assignment |
repository | https://github.com/tarikeshaq/cloudflare-2020-systems-engineering-assignment |
max_upload_size | |
id | 301739 |
size | 312,031 |
git clone https://github.com/tarikeshaq/cloudflare-2020-systems-engineering-assignment
rustup
route: https://rustup.rs/Convieniently this crate is published on crates.io so you could pull it from there, however, if you want to run it locally simply run:
cargo run -- --url <URL> --profile <NUMBER>
(Note, you can also add the --release
flag to run an optimized version of the crate)
And it would run NUMBER
of HTTP get requests against URL
, and present you with results.
In addition to the profiling data, if you'd like to see the response of a request, simply omit the --profile
.
I chose not to show the responses when we profile as that would just clutter the stdout.
i.e, if you run cargo run -- --url https://tarikeshaq.tarikesh.workers.dev/links
it will print out the response
cargo run --release -- --url https://tarikeshaq.tarikesh.workers.dev/links --profile 10
:
cargo run --release -- --url https://aws.random.cat/meow --profile 10
It seems that the cloudflare website is pretty darn fast 🥳
This is a project solving an optional assignment from cloudflare and thus is licensed using the same license. Check it out in LICENSE