Before acting on a performance measurement, check what the tool measured and under which conditions. Real visitors and controlled tests can produce different results.
Understand What the Measurement Represents
Real User Monitoring (RUM) records visitor experience. Synthetic Monitoring tests the site under controlled conditions. Use each result to answer the question it can support.
Synthetic Monitoring is a proactive monitoring practice that mirrors user interactions with an application. It employs scripted simulations to mimic user behaviors across various scenarios, geographies, and devices.
Think of it as a director for a digital stage, with behavioral scripts guiding simulated users across crucial paths on a website or application—the perfect rehearsal that predicts the real user’s performance.”
Synthetic results alone do not describe the range of experiences real visitors have.
Differing Metrics, Common Goal
RUM and Synthetic Monitoring answer different questions:
- Real User Monitoring (RUM): Offers insights on how many users actually interacted with your website? What was their experience like?
- Synthetic Monitoring: Provides consistent and controlled feedback for your website in a lab-like environment.
Luckily, both the RUM and Synthetic give clues on a site’s reliability, reach, responsiveness, and where to fine-tune.
GTmetrix is a synthetic testing tool. It runs a controlled test, so its results may differ from what real traffic experiences.
Compare Tests Under Known Conditions
RUM results vary with factors such as connection speed and device type. Use controlled synthetic tests to investigate changes under repeatable conditions.
Choose a Testing Tool
Choose the tool according to what you need to measure and when.
Performance Testing Tools
Examples include:
- Lighthouse & Core Web Vitals: Understand the test conditions before interpreting the result. Lighthouse runs synthetic tests.
- WebPageTest: Test with selected browsers, connection speeds, devices, and locations. Review the resulting load timings to investigate performance bottlenecks.
- Chrome DevTools: Inspect the site in the browser and run a performance test using the Chrome Developers tool. You can also test a page with Google PageSpeed Insight.
- Pingdom: Use Pingdom for website monitoring and performance tests.
What Are You Testing?
Check whether the test is receiving a cached response. Include uncached behavior when assessing the site’s performance.
The first hiccup here is that cache is only beneficial when filled beforehand—it’s incapable of aiding the first request. Resultantly, when performance tests are reiterated, superior numbers are produced, creating an illusion of a swift website.
Additionally, cache has an expiration date and requires periodic rebuilding to cache web assets again. Therefore, cache should be part of your strategy, not the entire story.
Consider this: a first-time visitor to your site might not receive the cached version. Therefore, testing the site’s performance beyond caching is crucial.
To sidestep caching, which may skew test results, you can use a cache buster parameter in the URL. This method can be employed when running tests using tools such as Google PageSpeed Insight or Pingdom.
Here’s how you do it: If you’re testing for https://example.com, simply add ?v=345to the tail end of the base URL.
If you need to execute multiple tests, ensure uniqueness by appending a different number after ‘busted’ for each test.
First test: https://example.com?v=345, second test: https://example.com?v=346 and so forth.
Auditing and Debugging Tools
These tools can help inspect individual pages:
- YSlow: An open-source project and a Firefox add-on that analyzes web pages and gives suggestions for improvement.
- GTMetrix: Use GTMetrix to inspect page loading and review its optimization suggestions.
Record the Conditions with the Result
Keep the device, connection, location, and cache conditions alongside the result. That makes subsequent tests easier to compare.