This repository contains 3 self-contained python and rust projects that implement a simple web server using different frameworks.
If you need more of a hands-on tutorial, check out my blog posts How to build a simple web server in Python and How to build a simple web server in Rust where I go into more detail.
The benchmark directory contains a script to benchmark the performance of each server, and a script to plot the results after all 3 servers have been benchmarked.
This produces the following plots:
If you like, check out my blog post on this comparison Benchmarking Python and Rust web servers.