Web server that can handle requests simultaneously using a custom thread pool of 4 threads.
To run
cargo run/is an endpoint that returns a simple HTML page with a welcome message./sleepis an endpoint that sleeps for 5 seconds before returning a simple HTML page with a welcome message.- This is used to benchmark the server's ability to handle multiple requests simultaneously.
To benchmark the server, run ./benchmark.sh or use hyperfine as follows
hyperfine "./benchmark.sh" --runs 5