Skip to content

Commit 499c9cd

Browse files
committed
Update example comment
1 parent 53740bb commit 499c9cd

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

examples/PerfTests/PerfTests.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)