Wiki: Measuring and monitoring client side performance
For agents: Markdown version · Wiki index · Explore
- Speaker: Nir Nahum
- Event: Reversim Summit 2016
- Video: https://www.youtube.com/watch?v=EA-Cd0ZHt6M
- Transcript: /transcripts/2016/38-EA-Cd0ZHt6M.md
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: DevOps, Performance, Debugging, Frontend
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker presents a system and methodology developed to measure and monitor client-side performance for a JavaScript-based product hosted on external websites. The talk explains how automated tests running in a lab environment collect metrics on memory consumption, load times, and bundle sizes, feeding them into dashboards for the development team. The speaker shares practical tips on reducing noise, handling cross-browser testing, and writing tests for performance regressions to prevent bad experiences for end users.
Key points
- 0:09 The speaker introduces a project focused on measuring and monitoring client-side performance for a product hosted inside other websites.
- 2:10 The solution involves an automated monitoring system that runs performance tests in a lab environment and sends results to dashboards.
- 4:23 Tracking performance metrics helps prevent regressions, especially since customers often use weaker hardware than developers.
- 7:49 The main steps to implement performance monitoring include defining key metrics, creating test cases, and setting up automated test cycles.
- 9:56 The collected data is sent to an ELK stack to create Kibana dashboards that provide visibility for all developers.
- 11:29 Best practices for stable measurements include running tests on identical machines and using daily averages to flatten noise.
- 13:46 Adopting a TDD approach for performance means writing a test that reproduces a discovered issue before attempting to fix it.
- 18:04 Additional monitoring is used to track JavaScript bundle sizes and detect unexpected growth caused by dependencies or code patterns.
Takeaways
- Build automated performance tests that run regularly in a controlled lab environment with identical hardware to minimize noise.
- Use daily averages of metrics to keep trend graphs stable and easily spot performance regressions.
- Adopt performance-driven TDD by writing a reproducing test whenever a performance issue or memory leak is discovered.
- Monitor client-side bundle sizes and set up alerts for minor file size increases to catch unintended bloat early.
Questions this talk answers
- How can you accurately measure client-side performance and memory consumption in a lab environment?
- What strategies help reduce noise and volatility when running automated performance tests?
- How can a development team integrate performance monitoring into their daily culture and CI pipeline?
Technologies
JavaScript, Selenium, Elasticsearch, Logstash, Kibana, HTML5
Tags
automation, ci/cd, client-side, javascript, memory leaks, metrics, performance monitoring