~/talk

Node.js Performance Optimization Case Study

Talkat Node.js Interactive 2015 · 2015-12-08..12-09· [nodejs, web-performance]
slides:none on file

A Node.js image glitcher called replace background starts at 8.67 seconds and 100% CPU for a single GIF. Measurement uses /usr/bin/time, perf flame graphs and the V8 profiler plus V8 IRHydra for deopt traces. Root cause is algorithmic: 360,000 sorts of 51 values (median) per image. Replacing median with mean cuts runtime to 3.4s; buffer copy becomes the new hotspot and a manual copy removes roughly another second, suggesting sub‑1s is achievable.

AI-written summary · about

  1. 0:00Introduction to Node.js performance
  2. 2:28Two key performance metrics
  3. 5:14Case study workflow overview
  4. 8:45Measuring performance with tools
  5. 10:53Reading flame graphs
  6. 13:03Identifying slow code location
  7. 15:10How V8 optimizes JavaScript
  8. 17:37Using IR Hydra for analysis
  9. 20:51Algorithm choice matters
  10. 22:15Mean vs median for averaging
  11. 23:38Further optimization steps
  12. 24:00Q&A and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.