The Apache software foundation offers a lot of cool tools. The one of them is Apache Bench.
It gives you ability to test and get benchmarks of handling http requests by your web service.
I currently use Ubuntu so to play around I ran next command:
sudo apt-get install apache2-utils
And fed my service to it:
ab -n 100 -c 10 http://127.0.0.1/greet
As a result, you'll get next output:
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient).....done
Server Software: nginx/1.17.6
Server Hostname: 127.0.0.1
Server Port: 80
Document Path: /greet
Document Length: 10 bytes
Concurrency Level: 10
Time taken for tests: 0.004 seconds
Complete requests: 100
Failed requests: 0
Total transferred: 15300 bytes
HTML transferred: 1000 bytes
Requests per second: 27956.39 [#/sec] (mean)
Time per request: 0.358 [ms] (mean)
Time per request: 0.036 [ms] (mean, across all concurrent requests)
Transfer rate: 4177.08 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 0 0 0.0 0 0
Waiting: 0 0 0.0 0 0
Total: 0 0 0.0 0 0
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 0
98% 0
99% 0
100% 0 (longest request)
No comments :
Post a Comment