This repo is for cs263 Runtime Systems Project for Fall 2021. This project builds and benchmarks a concurrent web servers in Rust, Go and JS with NodeJS. We also aim to survey the support each language provides for ease of development of concurrent tasks and the reasons for such support and brief overview of how they are implemented under the hood. We also benchmark the out of the box server implementations with baseline, I/O intensive and CPU intensive tasks.
- Document the difference between concurrency and paralleism.
- Study and document the features provided by GO programming Language for concurrency.
- Develop a Concurrent Web Server in Go.
- Make the Go web Server support I/O and CPU Intensive Tasks.
- Benchmark the Latency and Throughput for each concurrent level and server instance.
- Study and document the features provided by JS programming Language for concurrency.
- Develop a Concurrent Web Server in JS.
- Make the JS web Server support I/O and CPU Intensive Tasks.
- Benchmark the Latency and Throughput for each concurrent level and server instance.
- Study and document the features provided by Rust programming Language for concurrency.
- Develop a Concurrent Web Server in Rust.
- Make the Rust web Server support I/O and CPU Intensive Tasks.
- Benchmark the Latency and Throughput for each concurrent level and server instance.
cd go/go-web-server
go build main.go
./main
cd js
node test.js
cd rust-simple
cargo build --release
cargo run --release
cd rust-io
cargo build --release
cargo run --release
cd rust-cpu
cargo build --release
cargo run --release
Run the server; note down the port
ab -c CONCURRENCY_LEVEL -n REQUESTS -r URL:PORT/RESOURCE