~/talk

Effective Performance Testing to your Server with Autocannon

Talkat TestJS Summit 2021 · 2021-11-18..11-19· [nodejs, testing]
slides:none on file

Autocannon is used to benchmark Node.js servers and diagnose a synchronous CPU‑heavy hash blocking the event loop, then compared to an asynchronous worker‑thread version with measurable gains: 1.5s 99th percentile → 1.4s, average latency ~800ms → ~700ms and 12 rps → 14 rps (peak 20). Demonstrates CLI flags (-c, -d, -w), difference between HTTP pipelining and concurrent connections, scripted request flows that POST, capture an id and POST again, and recommends using production‑like datasets.

AI-written summary · about

  1. 0:00Start
  2. 6:43The Important Questions We Need To Ask
  3. 10:57HTTP Request Pipelines VS Concurrent Connections
  4. 21:28AutoCannon Actually Use Worker Threads
  5. 22:24Basic Example
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.