From 1f4d8b5ce3c3f4528c032f1cc8cb208463ef1e90 Mon Sep 17 00:00:00 2001 From: Mya Pitzeruse Date: Thu, 16 Mar 2023 17:11:33 -0500 Subject: [PATCH] add readme --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..10643ba --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# Rust vs Go + +This repository contains two quick implementations of echo servers in both [Rust] and [Go]. Both are +great languages with lots of support, I wanted to take a look at the type of operations that our programs +will be performing to get an idea of how well each will perform. + +## Running the Rust server + +```bash +cd rust +cargo run src/main.rs +# Listening on http://127.0.0.1:3000 +``` + +## Running the Go server + +```bash +cd go +go run main.go +# Listening on 127.0.0.1:3001 +``` + +## Testing the servers + +```bash +# 2MiB +RAND_CHARS=$(( 2 * 1024 * 1024 )) + +# send requests to Rust +time bash -c 'tr -dc A-Za-z0-9