From ebfb08ee3fdd8b64ce9e284372929cc4d8c99e71 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 23 Apr 2020 17:18:15 +0800 Subject: [PATCH] add performance testing result --- README.MD | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index b4b62d82d..b086f6ea0 100644 --- a/README.MD +++ b/README.MD @@ -50,10 +50,29 @@ golang version >= 1.13 # Performance -> Run `5` times for each case of each project and pick up the best testing result. - Performance testing cases source codes are hosted at: https://github.com/gogf/gf-performance +## Environment: + + OS : Ubuntu 18.04 amd64 + CPU : AMD A8-6600K x 4 + MEM : 32GB + GO : v1.13.4 + +## Testing tool + +`ab`: Apache HTTP server benchmarking tool. + +Command: +``` +ab -t 10 -c 100 http://127.0.0.1:3000/hello +ab -t 10 -c 100 http://127.0.0.1:3000/query?id=10000 +ab -t 10 -c 100 http://127.0.0.1:3000/json +``` +The concurrency starts from `100` to `10000`. + +> Run `5` times for each case of each project and pick up the best testing result. + ## 1. Hello World