diff --git a/benchmarks/bench-http.sh b/benchmarks/bench-http.sh index d18cff9..622a9c9 100755 --- a/benchmarks/bench-http.sh +++ b/benchmarks/bench-http.sh @@ -17,7 +17,6 @@ trap cleanup EXIT mkdir -p bin $(pkill -9 net-http-server || printf "") $(pkill -9 fasthttp-server || printf "") -$(pkill -9 iris-server || printf "") $(pkill -9 evio-http-server || printf "") function gobench { @@ -34,6 +33,5 @@ function gobench { } gobench "GO STDLIB" bin/net-http-server net-http-server/main.go 8081 -gobench "IRIS" bin/iris-server iris-server/main.go 8082 gobench "FASTHTTP" bin/fasthttp-server fasthttp-server/main.go 8083 gobench "EVIO" bin/evio-http-server ../examples/http-server/main.go 8084 diff --git a/benchmarks/out/http.png b/benchmarks/out/http.png index ffe67d1..a5ac0ce 100644 Binary files a/benchmarks/out/http.png and b/benchmarks/out/http.png differ diff --git a/benchmarks/out/http.txt b/benchmarks/out/http.txt index 5270983..f3dde2c 100644 --- a/benchmarks/out/http.txt +++ b/benchmarks/out/http.txt @@ -2,65 +2,48 @@ --- BENCH HTTP START --- --- GO STDLIB --- -2017/11/04 13:12:53 http server started on port 8081 +2017/11/06 11:43:15 http server started on port 8081 *** 50 connections, 10 seconds Bombarding http://127.0.0.1:8081 for 10s using 50 connections - [-----------------------------------------------------------------------------------] [=======>------------------------------------------------------------------------] 9s [===============>----------------------------------------------------------------] 8s [=======================>--------------------------------------------------------] 7s [===============================>------------------------------------------------] 6s [=======================================>----------------------------------------] 5s [===============================================>--------------------------------] 4s [=======================================================>------------------------] 3s [===============================================================>----------------] 2s [=======================================================================>--------] 1s [================================================================================] 0s [===============================================================================] 10s + [------------------------------------------------------------------------------] [=======>-------------------------------------------------------------------] 9s [==============>------------------------------------------------------------] 8s [======================>----------------------------------------------------] 7s [=============================>---------------------------------------------] 6s [=====================================>-------------------------------------] 5s [============================================>------------------------------] 4s [====================================================>----------------------] 3s [===========================================================>---------------] 2s [===================================================================>-------] 1s [===========================================================================] 0s [==========================================================================] 10s Done! Statistics Avg Stdev Max - Reqs/sec 40593.62 10690.23 54740 - Latency 1.23ms 804.48us 5.19ms + Reqs/sec 42487.26 9452.41 53042 + Latency 1.17ms 742.47us 12.53ms HTTP codes: - 1xx - 0, 2xx - 405973, 3xx - 0, 4xx - 0, 5xx - 0 + 1xx - 0, 2xx - 424966, 3xx - 0, 4xx - 0, 5xx - 0 others - 0 - Throughput: 7.47MB/s ---- DONE --- - ---- IRIS --- -Now listening on: http://localhost:8082 -Application started. Press CTRL+C to shut down. -2017/11/04 13:13:04 http server started on port 8082 -*** 50 connections, 10 seconds -Bombarding http://127.0.0.1:8082 for 10s using 50 connections - [-----------------------------------------------------------------------------------] [=======>------------------------------------------------------------------------] 9s [===============>----------------------------------------------------------------] 8s [=======================>--------------------------------------------------------] 7s [===============================>------------------------------------------------] 6s [=======================================>----------------------------------------] 5s [===============================================>--------------------------------] 4s [=======================================================>------------------------] 3s [===============================================================>----------------] 2s [=======================================================================>--------] 1s [================================================================================] 0s [===============================================================================] 10s -Done! -Statistics Avg Stdev Max - Reqs/sec 40927.73 9844.04 53086 - Latency 1.22ms 831.65us 5.94ms - HTTP codes: - 1xx - 0, 2xx - 409297, 3xx - 0, 4xx - 0, 5xx - 0 - others - 0 - Throughput: 7.53MB/s + Throughput: 7.82MB/s --- DONE --- --- FASTHTTP --- -2017/11/04 13:13:16 http server started on port 8083 +2017/11/06 11:43:27 http server started on port 8083 *** 50 connections, 10 seconds Bombarding http://127.0.0.1:8083 for 10s using 50 connections - [-----------------------------------------------------------------------------------] [=======>------------------------------------------------------------------------] 9s [===============>----------------------------------------------------------------] 8s [=======================>--------------------------------------------------------] 7s [===============================>------------------------------------------------] 6s [=======================================>----------------------------------------] 5s [===============================================>--------------------------------] 4s [=======================================================>------------------------] 3s [===============================================================>----------------] 2s [=======================================================================>--------] 1s [================================================================================] 0s [===============================================================================] 10s + [------------------------------------------------------------------------------] [=======>-------------------------------------------------------------------] 9s [==============>------------------------------------------------------------] 8s [======================>----------------------------------------------------] 7s [=============================>---------------------------------------------] 6s [=====================================>-------------------------------------] 5s [============================================>------------------------------] 4s [====================================================>----------------------] 3s [===========================================================>---------------] 2s [===================================================================>-------] 1s [===========================================================================] 0s [==========================================================================] 10s Done! Statistics Avg Stdev Max - Reqs/sec 103488.80 3859.56 119771 - Latency 481.02us 262.48us 12.84ms + Reqs/sec 104926.32 2744.15 117354 + Latency 474.64us 255.41us 11.06ms HTTP codes: - 1xx - 0, 2xx - 1034845, 3xx - 0, 4xx - 0, 5xx - 0 + 1xx - 0, 2xx - 1049311, 3xx - 0, 4xx - 0, 5xx - 0 others - 0 - Throughput: 20.82MB/s + Throughput: 21.11MB/s --- DONE --- --- EVIO --- -2017/11/04 13:13:27 http server started on port 8084 +2017/11/06 11:43:38 http server started on port 8084 *** 50 connections, 10 seconds Bombarding http://127.0.0.1:8084 for 10s using 50 connections - [-----------------------------------------------------------------------------------] [=======>------------------------------------------------------------------------] 9s [===============>----------------------------------------------------------------] 8s [=======================>--------------------------------------------------------] 7s [===============================>------------------------------------------------] 6s [=======================================>----------------------------------------] 5s [===============================================>--------------------------------] 4s [=======================================================>------------------------] 3s [===============================================================>----------------] 2s [=======================================================================>--------] 1s [================================================================================] 0s [===============================================================================] 10s + [------------------------------------------------------------------------------] [=======>-------------------------------------------------------------------] 9s [==============>------------------------------------------------------------] 8s [======================>----------------------------------------------------] 7s [=============================>---------------------------------------------] 6s [=====================================>-------------------------------------] 5s [============================================>------------------------------] 4s [====================================================>----------------------] 3s [===========================================================>---------------] 2s [===================================================================>-------] 1s [===========================================================================] 0s [==========================================================================] 10s Done! Statistics Avg Stdev Max - Reqs/sec 121495.63 2440.47 127822 - Latency 409.61us 127.63us 10.56ms + Reqs/sec 123821.87 2821.88 130897 + Latency 401.99us 121.11us 12.88ms HTTP codes: - 1xx - 0, 2xx - 1215280, 3xx - 0, 4xx - 0, 5xx - 0 + 1xx - 0, 2xx - 1238166, 3xx - 0, 4xx - 0, 5xx - 0 others - 0 - Throughput: 19.00MB/s + Throughput: 19.60MB/s --- DONE --- --- BENCH HTTP DONE ---