~/talk

"JSMeter: Characterizing Real-World Behavior..."

Talkat Velocity 2010 · 2010-06-22..06-24· [javascript, web-performance]
name:Ben Zorn
links:none on file
links:none on file
slides:none on file

JSMeter instruments IE’s JavaScript engine to count bytecodes and traces of real user sessions on top sites and compares those to SunSpider/V8 benchmarks. Results show real apps load megabytes of code but execute many short functions (~50 bytecodes/call), with the top 100–150 functions accounting for ~80% of execution. Heap is dominated by strings and script functions, events fire hundreds–thousands of times, and adding ~2 MB of cold code slows some benchmarks 4.5×. The instrumentation and session-driven traces expose gaps between benchmarks and real-world behavior.

AI-written summary · about

  1. 0:00Intro
  2. 0:15Background
  3. 1:25Why Measure JavaScript?
  4. 4:37Source level instrumentation
  5. 6:49Understanding JavaScript Behavior
  6. 7:37Code Behavior
  7. 8:04Total Bytes of JavaScript Source
  8. 9:27Static Unique Functions Executed
  9. 10:44Bytecodes / Call
  10. 11:59Fraction of Code Executed
  11. 12:52Hot Function Distribution
  12. 14:20Object Allocation Behavior
  13. 14:37Total Bytes Allocated
  14. 18:26Live Heap Over Time (gmail)
  15. 20:15Live Heap over Time (ebay)
  16. 21:572 Search Websites, 2 Architectures
  17. 23:43Event Handlers in JavaScript
  18. 24:26Total Events Handled
  19. 25:03Median Bytecodes / Event Handled
  20. 26:12Cold-code Experiment
  21. 26:44Performance Impact of Cold Code
  22. 28:41Impact of Benchmarks
  23. 29:53Conclusions
  24. 31:02Additional Resources
~/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.