saeidalidadi / concurrency-benchmarks

concurrency-benchmarks for languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Concurrency in modern programming languages

This is the code samples used for my blog series https://deepu.tech/concurrency-in-modern-languages/

The benchmarks were run using ApacheBench

Go

cd gows && go run main.go

# in a new terminal
ab -c 100 -n 10000 http://localhost:8080/

Rust

cd rustws_async && cargo run --release

# in a new terminal
ab -c 100 -n 10000 http://localhost:8080/

JS

cd jsws && node main.js

# in a new terminal
ab -c 100 -n 10000 http://localhost:8080/

TS

cd tsws && deno run --allow-all main.ts

# in a new terminal
ab -c 100 -n 10000 http://localhost:8080/

About

concurrency-benchmarks for languages


Languages

Language:Rust 45.1%Language:Java 19.6%Language:Kotlin 8.8%Language:Go 8.5%Language:HTML 8.2%Language:TypeScript 6.0%Language:JavaScript 3.7%