Code Monkey home page Code Monkey logo

cs263_project's Introduction

Concurrency in Programming Languages

Summary

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.

Project Timeline

Week One

  1. Document the difference between concurrency and paralleism.
  2. Study and document the features provided by GO programming Language for concurrency.
  3. Develop a Concurrent Web Server in Go.

Week Two

  1. Make the Go web Server support I/O and CPU Intensive Tasks.
  2. Benchmark the Latency and Throughput for each concurrent level and server instance.

Week Three

  1. Study and document the features provided by JS programming Language for concurrency.
  2. Develop a Concurrent Web Server in JS.

Week Four

  1. Make the JS web Server support I/O and CPU Intensive Tasks.
  2. Benchmark the Latency and Throughput for each concurrent level and server instance.

Week Five

  1. Study and document the features provided by Rust programming Language for concurrency.
  2. Develop a Concurrent Web Server in Rust.

Week Six

  1. Make the Rust web Server support I/O and CPU Intensive Tasks.
  2. Benchmark the Latency and Throughput for each concurrent level and server instance.

How to Run Tests

Run GO server

cd go/go-web-server
go build main.go
./main

Run JS server

cd js
node test.js

Run Rust Baseline Server

cd rust-simple
cargo build --release
cargo run --release

Run Rust I/O Intensive Server

cd rust-io
cargo build --release
cargo run --release

Run Rust CPU Intensive Server

cd rust-cpu
cargo build --release
cargo run --release

Run Benchmarking

Run the server; note down the port

ab -c CONCURRENCY_LEVEL -n REQUESTS -r URL:PORT/RESOURCE

cs263_project's People

Contributors

naagarjunsa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.