Meta's Mobile Performance: Tooling Infrastructure at Facebook
Original post Mobile Performance: Tooling Infrastructure at Facebook
Article Summary
Zheng Mi from Facebook reveals how they built CT-Scan, a system that prevented hundreds of performance regressions in just six months. When you're shipping thousands of mobile changes weekly, one innocent commit can tank your app's speed, battery life, or memory footprint.
Facebook faced a critical challenge: maintaining app performance while shipping thousands of weekly changes across iOS and Android. In 2013, they started building CT-Scan, an automated performance monitoring platform that uses A/B testing, statistical analysis, and machine learning to catch regressions before they reach users.
Key Takeaways
- CT-Scan prevented hundreds of regressions across speed, battery, memory, and data usage
- System provides feedback in 30 to 60 minutes using parallel testing and dynamic device pools
- Automated profiling pinpoints exact object allocations and call stacks causing issues
- Production sampling at 1 in 1,000 interactions gives zero amortized performance impact
- Ran hundreds of thousands of experiments in six months using custom device racks
Facebook built a distributed testing system that catches mobile performance issues across the entire development lifecycle, from local commits to production, with minimal overhead and fast feedback loops.
Continue reading
This page summarizes “Mobile Performance: Tooling Infrastructure at Facebook” by Meta, published Apr 10, 2015. All credit for the original work goes to the authors.