~/talk

Benchmarking Like a Boss

Talkat JSConf US 2011 · 2011-05-02..05-03· [testing]
slides:none on file

Benchmarking claims practical fixes: a rewrite yields benchmark.js powering jsperf.com and a passive monitor called x-stats js that measures FPS and memory. Timing strategy changes from fixed loops to short adaptive runs — typically 50 milliseconds on modern browsers versus ~750ms or 1s for low-resolution timers — and a Java-backed nanosecond-ish timer reduces IE timer problems. Results use ops/sec, sample sizes ~100, margins of error and t-tests with a 5% wiggle to avoid false significance; beware dead-code removal and caching.

AI-written summary · about

  1. 0:00Introduction
  2. 1:22Synthetic Benchmarks
  3. 2:01DOM Benchmarks
  4. 2:44JSperf
  5. 3:02JScom
  6. 3:37XstatsJS
  7. 4:35While Loop
  8. 5:33One Second Test
  9. 7:41Context
  10. 8:39Consistency
  11. 9:28Results
  12. 10:01Firefox Bug
  13. 11:00Finding Accurate Formulas
  14. 12:13How to Get Consistent Timer Resolution
  15. 13:31Formulas
  16. 14:19Ttest
  17. 15:06Khan Academy
  18. 15:33Gotchas
  19. 16:19Issues
  20. 17:48Questions
~/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.