USERPID%CPU %MEM VSZ RSS TTY STAT START TIME COMMANDuser1149660.00.0115001320?Ss12:350:00nginx:masterprocessuser1149670.00.0131644068?S12:350:00nginx:workerprocessuser1149680.00.0131644068?S12:350:00nginx:workerprocessuser1149690.00.0131644068?S12:350:00nginx:workerprocessuser1149700.00.0131644068?S12:350:00nginx:workerprocess
$ ab -q -n 100000 -c 10 http://localhost:6666/
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software: openresty/1.21.4.1
Server Hostname: localhost
Server Port: 6666
Document Path: /
Document Length: 0 bytes
Concurrency Level: 10
Time taken for tests: 3.214 seconds
Complete requests: 100000
Failed requests: 0
Non-2xx responses: 100000
Total transferred: 18856993 bytes
HTML transferred: 0 bytes
Requests per second: 31116.39 [#/sec] (mean)
Time per request: 0.321 [ms](mean)
Time per request: 0.032 [ms](mean, across all concurrent requests)
Transfer rate: 5730.09 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 000.0 02
Processing: 000.1 04
Waiting: 000.1 04
Total: 000.1 04
Percentage of the requests served within a certain time(ms)50% 066% 075% 080% 090% 095% 098% 099% 0100% 4(longest request)
À noter que le nombre de requètes/s dépend de l'ordinateur utilisé. Et aussi que "ab" est mono-threadé et est donc limité en performances (htstress -n 200000 -c 10 -t 8 retourne 85595 requètes/s)
# nginx / openresty
Posté par Damien Thébault . En réponse au journal Le taptempo du web. Évalué à 3. Dernière modification le 15 juin 2022 à 13:31.
Avec nginx / openresty (il faut openresty pour pouvoir générer la valeur aléatoire avec la commande set_random)
Commande:
openresty -p "$PWD" -c ./nginx.confps aux:
Résultat, sur un i7-4900MQ 4 cœurs 2.8GHz
À noter que le nombre de requètes/s dépend de l'ordinateur utilisé. Et aussi que "ab" est mono-threadé et est donc limité en performances (
htstress -n 200000 -c 10 -t 8retourne 85595 requètes/s)