File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,10 +118,9 @@ void setup() {
118118
119119 // HTTP endpoint
120120 //
121- // > brew install autocannon
122- // > autocannon -c 10 -w 10 -d 20 http://192.168.4.1
123- // > autocannon -c 16 -w 16 -d 20 http://192.168.4.1
124- //
121+ // > autocannon -c 16 -w 16 -d 20 --renderStatusCodes http://192.168.4.1/
122+ // > ab -c 16 -t 20 http://192.168.4.1/
123+ //
125124 server.on (" /" , HTTP_GET, [](AsyncWebServerRequest *request) {
126125 // need to cast to uint8_t*
127126 // if you do not, the const char* will be copied in a temporary String buffer
@@ -173,7 +172,6 @@ void setup() {
173172 // SSS endpoint
174173 //
175174 // launch 16 concurrent workers for 30 seconds
176- // > for i in {1..10}; do ( count=$(gtimeout 30 curl -s -N -H "Accept: text/event-stream" http://192.168.4.1/events 2>&1 | grep -c "^data:"); echo "Total: $count events, $(echo "$count / 4" | bc -l) events / second" ) & done;
177175 // > for i in {1..16}; do ( count=$(gtimeout 30 curl -s -N -H "Accept: text/event-stream" http://192.168.4.1/events 2>&1 | grep -c "^data:"); echo "Total: $count events, $(echo "$count / 4" | bc -l) events / second" ) & done;
178176 //
179177 // With AsyncTCP, with 16 workers: a lot of "Event message queue overflow: discard message", no crash
You can’t perform that action at this time.
0 commit comments