Skip to content

mattn/concurrency-benchmarks

 
 

Repository files navigation

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

Java

cd javaws && java src/JavaHTTPServer.java

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

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Rust 35.4%
  • Java 18.7%
  • Kotlin 16.6%
  • JavaScript 14.0%
  • HTML 6.7%
  • Go 5.9%
  • TypeScript 2.7%
close