Clone Repo
$ git clone https://github.com/BerkCalik/DotnetCore-vs-NodeJS-Benchmark.git
$ cd DotnetCore-vs-NodeJS-BenchmarkInstall Node.js
$ cd node
$ npm install
$ npm startYou can create http request to http://localhost:3000/values
Install Dotnet Core
$ cd dotnet
$ dotnet build
$ dotnet run -c releaseYou can create http request to http://localhost:5000/api/values
Install Wrk Tool
- 25 thread
- 500 connection
- 10s duration
$ wrk -t25 -c500 -d10s http://localhost:3000/values
Running 10s test @ http://localhost:3000/values
25 threads and 500 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 41.61ms 9.31ms 174.37ms 83.50%
Req/Sec 402.44 112.38 0.88k 80.10%
100489 requests in 10.08s, 23.38MB read
Socket errors: connect 0, read 497, write 0, timeout 0
Requests/sec: 9972.90
Transfer/sec: 2.32MB$ wrk -t25 -c500 -d10s http://localhost:5000/api/values
Running 10s test @ http://localhost:5000/api/values
25 threads and 500 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 11.80ms 8.51ms 322.71ms 94.59%
Req/Sec 1.65k 364.83 4.81k 85.24%
413804 requests in 10.11s, 75.38MB read
Socket errors: connect 0, read 419, write 0, timeout 0
Requests/sec: 40950.42
Transfer/sec: 7.46MB- iMac (27-inch, Mid 2011)
- 3.4 GHz Intel Core i7
- 16 GB 1333 MHz DDR3
- SSD