<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abraham Mathew Muthalaly on Medium]]></title>
        <description><![CDATA[Stories by Abraham Mathew Muthalaly on Medium]]></description>
        <link>https://medium.com/@abraham.muthalaly?source=rss-3dea53318542------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8oKWJAhn4O3X8yrHjv9Iaw.jpeg</url>
            <title>Stories by Abraham Mathew Muthalaly on Medium</title>
            <link>https://medium.com/@abraham.muthalaly?source=rss-3dea53318542------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:21:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abraham.muthalaly/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What Are Performance Budgets?]]></title>
            <link>https://medium.com/@abraham.muthalaly/what-are-performance-budgets-c6970b42708b?source=rss-3dea53318542------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6970b42708b</guid>
            <category><![CDATA[web-performance]]></category>
            <category><![CDATA[page-speed]]></category>
            <category><![CDATA[performance-testing]]></category>
            <category><![CDATA[performance-engineering]]></category>
            <category><![CDATA[performance-budget]]></category>
            <dc:creator><![CDATA[Abraham Mathew Muthalaly]]></dc:creator>
            <pubDate>Wed, 23 Nov 2022 11:29:22 GMT</pubDate>
            <atom:updated>2022-11-23T11:29:22.480Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Classification of Performance budgets — User Experience and Technical" src="https://cdn-images-1.medium.com/max/1024/1*5WPvmnbnK7PicOJnTC-Nqg.png" /></figure><p>Google defines Performance Budgets as “<em>a set of limits imposed on metrics that affect site performance</em>”¹. Put simply, it’s like a Non-Functional Requirement (NFR), but with a (arguably?) cooler name.</p><p>At the Emirates Group, we use Performance Budgets against our sites to ensure what we ship to our customers is always at the level they expect.</p><h3>What are the types of Performance Budgets?</h3><p>Any metric can be considered for a budget, therefore in order to make things easier for our teams, we’ve divided them into two primary groups: User Experience and Technical.</p><p>User experience budgets cover metrics related to the page load, which directly impact what a user sees, how quickly they see it and how quickly they can interact with one of our pages.</p><p>Technical budgets cover metrics we can quantify, such as the size of resources or the total size of the page. These will have an indirect impact on user experience, but sometimes we won’t know the magnitude of the impact, and therefore we measure them independently.</p><p>Here are some examples of each type of budget:</p><figure><img alt="Examples of Performance Budgets" src="https://cdn-images-1.medium.com/max/640/1*mL_QfR9LrG1--LRbn4-mog.png" /><figcaption>Examples of Performance Budgets</figcaption></figure><p>Now before we go any further and bombard you with acronyms, let’s take a quick look at what some of these mean.</p><h4>Time to First Byte (TTFB)</h4><figure><img alt="What is time to first byte? What happens under the hood?" src="https://cdn-images-1.medium.com/max/845/1*55OAmql4Yoy9H38HvmfOsg.png" /><figcaption>Time to First Byte²</figcaption></figure><p>This gives us a good indication of slow backend performance or possible network issues. The TTFB may be significantly impacted if we have a large number of domains to connect to. The longer the TTFB, the longer the user will experience a blank screen on their device, which can be really frustrating.</p><h4>First Contentful Paint (FCP)</h4><figure><img alt="What is First Contentful Paint (FCP)?" src="https://cdn-images-1.medium.com/max/826/1*loqsAuQ0He6hr7jEa8jmYw.png" /><figcaption>First Contentful Paint (FCP)</figcaption></figure><p>FCP is a crucial user-centric metric for measuring perceived pagespeed, as it marks the first point when the user can see anything on the screen. A fast FCP helps reassure the user that something is happening.</p><h4>Largest Contentful Paint (LCP)</h4><figure><img alt="What is Largest Contentful Paint (LCP)?" src="https://cdn-images-1.medium.com/max/811/1*OrjW6GNuQwebACs9TMK_Ag.png" /><figcaption>Largest Contentful Paint (LCP)</figcaption></figure><p>On the opposite side of spectrum is the Largest Contentful Paint. This is another important user-centric metric for measuring perceived performance, because it marks the point in time when the page’s main content has likely loaded. It could be an image (see the green highlighted image above) or a block of text. The user is more assured that the page will be helpful, thanks to a quick LCP, because the most pertinent content has probably already been shown.</p><h4>Cumulative Layout Shift (CLS)</h4><figure><img alt="An example of a layout shift affecting User Experience" src="https://cdn-images-1.medium.com/max/600/1*-k10eE5pOGgQ78cLqY8obg.gif" /><figcaption>An example of Layout Shift</figcaption></figure><p>The next metric isn’t technically a performance one, but it’s more user-centric and easy to measure, so we capture it. Cumulative Layout Shift is an important metric for measuring visual stability, because it helps quantify how often users experience unexpected layout shifts. A low CLS helps ensure that the page, and therefore the User Experience is delightful. As you can see from the gif above, the user attempts to click the ‘Cancel’ button, but the content shifts down just as they click, making the ‘Buy Now’ button the one that comes into focus. This is an example of a layout shift, and the sum of all these shifts is what we measure. This metric is also part of Google’s Core Web Vitals.</p><h4>Total Blocking Time (TBT)</h4><figure><img alt="What is total blocking time and how is it measured" src="https://cdn-images-1.medium.com/max/1024/1*qT2_uApTR9P79pZSJ7DU-g.png" /><figcaption>Total Blocking Time³</figcaption></figure><p>Our next metric is Total Blocking Time. This metric is an important lab metric for measuring load responsiveness because it helps quantify the severity of how non-interactive a page is prior to it becoming reliably interactive. A low TBT helps ensure that the page is usable. It is calculated by summing all the long tasks on the main thread. A long task is one that takes more than 50ms to execute on the main thread of the browser.</p><p>When something is executing on the main thread, the user cannot interact with the page. So, the more long tasks our sites have, the longer the time it takes to become interactive.</p><h4>Visually Complete</h4><figure><img alt="Gif depicting Visually Complete" src="https://cdn-images-1.medium.com/max/600/1*XI8rz-xtuQDdQMJk7ZI95A.gif" /><figcaption>Example of Visually Complete</figcaption></figure><p>Our final user experience metric is visually complete. As we capture videos for each run, we are able to identify when the ‘above the fold’ content is 95% or more visually complete. This gives a very good indication of the page being ‘ready’ to use. This is one of the most crucial metrics we track, as we base it not only on the navigation timing API of the browser, but also on the content that is presented in the viewport exactly as the user would see it.</p><h3>What do we measure at the Emirates Group?</h3><p>Here at the Emirates Group, we’ve developed a <a href="https://medium.com/@abraham.muthalaly/pagespeed-framework-how-we-measure-page-speed-1d6818afac5e">Pagespeed framework</a> that enables any team to run page speed tests against their websites whenever they want. We want all engineering teams to be self-sufficient in measuring the performance of their websites and applications, and obtaining fast feedback within development sprints.</p><p>The Pagespeed framework allows users to define budgets for their website, both at a product level and at an individual page level. If we aren’t within our budgets, we most likely won’t release the features to users.</p><p>We’re not prescriptive here with our teams, and we practice autonomy. We empower them to measure what they feel is relevant, while also considering what is achievable given the constraints they work under. Our advice to engineering teams is to start with a small number of budgets and incrementally increase them. We’ve found this to be the best way to instill a performance first mindset within the teams.</p><p>Here’s an example process flow for how we incorporate Pagespeed checks and budgets into our pipelines (<em>does not include all stages and gates</em>).</p><figure><img alt="A sample pipeline with Pagespeed tests and budget assessments" src="https://cdn-images-1.medium.com/max/1024/1*OYF9VzeAjdkd_K36iPPkew.png" /><figcaption>A sample pipeline with Pagespeed tests and budget assessments</figcaption></figure><h3>How do we set budgets?</h3><h4>Baseline Current Production</h4><p>For sites that we have already deployed, we set up synthetic monitoring of these and we use the data from here to determine what realistic budgets we should set.</p><p>We can’t be super aggressive with budgets; if the tests consistently fail, it isn’t very motivating. Instead, we ask the team to have aspirational goals, but apply some pragmatism to them. What we’ve seen work best is to set the budget values based on the actual value seen in production environments, and then set a goal to improve in every sprint. This way we ensure we never get slow, and we always have performance improvements in our pipeline of work.</p><h4>Use Real World Data</h4><p>What if you don’t have an existing website for which data is readily available? Well, we can look at what the wider industry is doing, and thanks to the lovely people who collated the HTTP Archive data (<a href="https://httparchive.org/">https://httparchive.org/</a>)⁴, we can see where other sites are at.</p><p>As an example, here are the median values for some metrics from the Top 10,000 most visited sites from 1 January 2021 to 31 December 2021. This makes a great starting point for any team kicking off a new project.</p><figure><img alt="Page statistics from HTTP Archive — From January 2021 to December 2021" src="https://cdn-images-1.medium.com/max/640/1*fJQT2SGt1oXlFM0C4_2brg.png" /><figcaption>Page statistics from HTTP Archive — From January 2021 to December 2021</figcaption></figure><p><a href="https://www.performancebudget.io/">Performance Budget Calculator</a>⁵ is a good starting point for defining performance budgets.</p><h3>Final Thoughts</h3><p>As we mature in this practice, we ask teams to include page performance budgets while defining the NFRs. Budgets are a great way to keep the culture of performance alive within your autonomous teams and to ensure continuous performance improvement. The budgets listed above are by no means an exhaustive list. As I mentioned in my last article, we capture over 2,000 metrics for every test executed. Not all of them require a budget to be established.</p><p>Choose your budgets wisely.</p><p><em>Authors: </em><a href="https://medium.com/u/c36937f793b4"><em>Shahil Bhimji</em></a><em>, </em><a href="https://medium.com/u/557272ecfec9"><em>Barry Perez</em></a><em>, </em><a href="https://medium.com/u/3dea53318542"><em>Abraham Mathew Muthalaly</em></a></p><p>Further Reading</p><ol><li><a href="https://medium.com/@abraham.muthalaly/pagespeed-framework-how-we-measure-page-speed-1d6818afac5e">Pagespeed framework</a>: How We Measure Page Speed at the Emirates Group</li><li><a href="https://www.linkedin.com/posts/abraham-muthalaly_codeemirates-codebetter-performanceengineering-activity-6981181864589832192-j6YJ?utm_source=share&amp;utm_medium=member_desktop">What is Pagespeed</a>? And a pagespeed comparison of few popular airline websites</li></ol><p>References</p><ol><li><em>Performance budgets 101</em>. (n.d.). web.dev. <a href="https://web.dev/performance-budgets-101/">https://web.dev/performance-budgets-101/</a></li><li><em>Time to First Byte (TTFB)</em>. (n.d.). web.dev. <a href="https://web.dev/ttfb/">https://web.dev/ttfb/</a></li><li><em>Total Blocking Time (TBT)</em>. (n.d.). web.dev. <a href="https://web.dev/tbt/">https://web.dev/tbt/</a></li><li><em>The HTTP Archive</em>. (2022, October 3). <a href="https://httparchive.org/">https://httparchive.org/</a></li><li><em>Performance Budget Calculator</em>. (n.d.). <a href="https://www.performancebudget.io/">https://www.performancebudget.io/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6970b42708b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pagespeed Framework: How We Measure Page Speed]]></title>
            <link>https://medium.com/@abraham.muthalaly/pagespeed-framework-how-we-measure-page-speed-1d6818afac5e?source=rss-3dea53318542------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d6818afac5e</guid>
            <category><![CDATA[performance-engineering]]></category>
            <category><![CDATA[page-speed]]></category>
            <category><![CDATA[site-speed]]></category>
            <category><![CDATA[performance-testing]]></category>
            <category><![CDATA[web-performance]]></category>
            <dc:creator><![CDATA[Abraham Mathew Muthalaly]]></dc:creator>
            <pubDate>Tue, 01 Nov 2022 08:36:04 GMT</pubDate>
            <atom:updated>2022-11-01T08:36:04.711Z</atom:updated>
            <content:encoded><![CDATA[<p>You may have seen my recent LinkedIn post on “What is Pagespeed?”. (Link at the end of this article). I promised I would share details on the framework we’ve built and the reasons for doing so.</p><p>Like all journeys it started with an idea, which quickly became our vision: <strong>To ensure all Emirates Group customers, internal or external, get best-in-class Pagespeed</strong></p><p>We knew we can’t realise this vision if only the performance engineers were responsible for performance. (One performance engineer for a team of ~100). It had to be a collaborative effort, and every member in the team, whether a developer, a quality engineer, a performance engineer or an SRE, has to be empowered to deliver Pagespeed improvements to our customers.</p><p>We therefore came up with a mission:</p><ul><li>Continuous Measurement and Improvement: Provide all teams with the ability to continually measure pagespeed where they need it</li><li>Autonomy: Ensure teams are empowered to deliver Pagespeed improvements themselves</li><li>Self-Sufficient: To give teams the best tools for the job</li></ul><p>We used the principles of design thinking to frame what we needed to meet our vision and our mission. We kept it human-centered, and had numerous sessions with our customers to understand their frustrations and pain points. Through these sessions, we were able to clearly see what the gaps were, what these meant to our stakeholders, and therefore what we needed to build.</p><figure><img alt="A board depicting where we are and where we want to be" src="https://cdn-images-1.medium.com/max/975/1*srXFSyL69ZNw4MC2XA-K5Q.png" /><figcaption>Figure 1: Canvas depicting where we were and where we need to be</figcaption></figure><p>We knew that all teams are concerned about Pagespeed and everyone wanted to ensure their products provided best in class performance, but there was no consistency in the practices adopted. Some of the key findings from the discussions were:</p><ul><li>Tests were infrequent, and were mostly ad hoc manual tests</li><li>As most tests were manual, there were no performance metrics trends available, making it difficult to determine improvements or degradations</li><li>No ability to determine the performance impact of a particular release or change</li><li>Chrome User Experience Data was not captured</li><li>While the existing tool had interesting features, enhancements were near impossible</li><li>Limited dashboards to compare and analyse performance</li><li>Test execution time significantly increased in proportion to the number of tests in the pipeline</li></ul><p>Therefore, at a minimum, any solution that we came up with, needed to have the following features:</p><ul><li>Measure performance of our pages over time</li><li>Measure and trend Core Web Vitals</li><li>Identify performance regressions and the ability to identify the cause</li><li>Single source of truth for Pagespeed</li><li>Near real-time feedback on performance</li><li>Data driven approach to performance</li></ul><h3>Tool Selection</h3><p>Once we had a clear idea of what our users needed in order to address their challenges, we spent some time investigating what tools were available, and which among those would meet our needs.</p><h4>Key requirements</h4><ul><li>A “cloud-ready” solution which could be deployed into our existing cloud accounts</li><li>The ability to use ephemeral instances and on-demand pricing</li><li>The ability to test both internal/intranet (on-premises/behind firewall) and external (public facing) sites</li><li>To be able to integrate into our CI/CD pipelines to meet our objective of being able to shift-left (to give teams fast feedback on what they build)</li><li>Low Total Cost of Ownership (TCO), given that we have a lot of teams who will be using this solution</li><li>The ability to run tests using real browsers — both for simple pages, and for more complex scripted journeys</li></ul><h4>What did we find?</h4><p>There are numerous tools available in the market, both open source and commercial, including SaaS solutions. But we knew that we needed a solution that will help us to both shift-left (run in lower environments) and shift-right (run in production). We quickly realised that SaaS tools would not be feasible, as the overall management would be cumbersome, and requires very high effort both in set up and maintenance. Being a large organisation, our security environment is tight, and it’s just not possible to expose all our non-production environments to the outside world.</p><p>We performed an analysis of the likely number of tests which our teams would run, and then produced a costing spreadsheet. We were able to compare the TCO for commercial (including pay per test) solutions versus open source solutions. This helped us to confirm that the tool we selected would provide value for money, and that costs would not escalate as we on-boarded more teams and implemented data persistence for long-term trending.</p><h4>What tool did we select?</h4><p>We found that no single tool, out of the box, met all our needs. We therefore decided on a combination of an open-source tool (Sitespeed.io), and building our own framework on top of that. By adopting this approach, we could customise the features based on what the users really wanted.</p><p>Sitespeed.io is an open source solution, and already had a host of features that we needed. It provides the ability to persist data to a time series database, and comes with some rich customisable dashboards. The tool creates some nice html reports, and gives a number of recommendations on potential improvements.</p><h3>What we’ve built</h3><p>We decided to build our framework in such a way that we could leverage our existing AWS accounts, which have access to both our internal/intranet and external sites. Using cloud meant we could easily spin up multiple Sitespeed worker instances to run tests in parallel, and give our users the answers they need, rapidly.</p><p>We planned to build our framework in such a way that our users could express their tests in code, with configuration specifying where to run the test, which devices to use and under what network conditions. This way, we could keep all the underlying tool configuration away from them.</p><p>Sitespeed.io is (almost) infinitely configurable. We love this, but our users would find it quite overwhelming, so instead, we give them a much more simplified set of configuration options, and we do the heavy lifting in the backend.</p><p>The most important aspect of our framework is in ensuring our tests are done under lab-based conditions. This means we have very specific viewports and pixel densities, as well as packet level throttling to simulate mobile and Wi-Fi networks. In order to deliver consistency against all of our tests we’ve simplified the parameters the teams can use. See below the choices our teams can have to run their tests.</p><figure><img alt="The different network and device parameters we use for our tests" src="https://cdn-images-1.medium.com/max/1024/1*oO7iwYFTzu_iWJeDPmdHUA.png" /><figcaption>Figure 2: Parameters for test execution</figcaption></figure><p>In addition to the synthetic tests, we also pull data from Google’s Chrome User Experience so that we get metrics of our customers’ experience out in the field. All of this data goes into a time-series database (Graphite) for long term trending and we use Grafana to visualise this. We also have a RUM tool, but that’s for another day!</p><h4>Framework Architecture</h4><p>The diagram and table below give an overview of the main components of our Pagespeed framework, and the purpose they serve.</p><figure><img alt="The conceptual architecture of our pagespeed framework" src="https://cdn-images-1.medium.com/max/877/1*2gAED8EMRwqyyDhvPVx9Hw.png" /><figcaption>Figure 3: Conceptual Architecture</figcaption></figure><figure><img alt="The list of componenets of the pagespeed framework and what pupose they serve" src="https://cdn-images-1.medium.com/max/642/1*HZg9ZgIFq-umrFYs8MYsCw.png" /><figcaption>Table 1: Components of the Pagespeed framework</figcaption></figure><h3>Our Approach</h3><p>We’ll spew out another article on how we use our framework day to day, but at a high level we have given teams the ability to run tests shifted left, which means setting up tests in their CI/CD pipelines. Why is this important? Well, it gives them fast feedback within their development sprint. If you’re a developer working on a feature, you’ll know as soon as you’ve built your code whether it’s impacted performance or breached an NFR. This therefore means a poor performing page will never reach one of our customers.</p><p>Teams can also shift right, which is to run test in production to capture key Pagespeed metrics. Running tests in production lets us see what our customers see, albeit in a controlled lab environment, and will drive the performance improvements based on the vast data that the tests produce. This is particularly important when we have business colleagues creating new tags or adding new content which doesn’t call for a technical deployment.</p><p>Teams can also set up and define budgets so that they’re focusing on all areas of performance. This is a serious level of maturity and will really allow teams to be best in class for Pagespeed. More on performance budgets in an upcoming article!</p><h3>The Outcome</h3><p>With so much data and the power of visualisation (Grafana), we can visualise our metrics in many ways. We can create leaderboards which show how we rank against our competitors; our business colleagues love this. We can also rank teams against each other and create a bit of healthy competition amongst product owners!</p><figure><img alt="A leaderboard showing the performance of various pages" src="https://cdn-images-1.medium.com/max/975/1*WDojW9QMMysfV_EAi98OWA.png" /><figcaption>Figure 4: Leader Board</figcaption></figure><p>I mentioned before that we capture data from the Chrome User Experience Report. We can use that to trend our actual Core Web Vitals over time. As Core Web Vitals now impact search rankings, this data is super useful to our marketing and SEO teams.</p><figure><img alt="A Dashboard for Core Web Vitals" src="https://cdn-images-1.medium.com/max/1024/1*OvCSlqqWV1ZJqXG8mwDPFA.png" /><figcaption>Figure 5: Core Web Vitals Dashboard</figcaption></figure><p>If we want to do RCA for issues, we can build a much more complex dashboard where we can correlate specific page metrics. This is where our performance engineers spend most of their time. Teams are also able to annotate graphs, and thereby mark significant events like releases and upgrades. This also helps to correlate performance regressions or improvements with the event.</p><figure><img alt="A detailed dashboard with all the performance metrics we collect for each test execution" src="https://cdn-images-1.medium.com/max/1024/1*_CfIuKy6KoIYy3OyR0ipeQ.png" /><figcaption>Figure 6: Detailed page statistics dashboard</figcaption></figure><p>As we start to run more and more tests, we need real-time feedback for performance regressions. With the power of Grafana we can use alerts to notify us if a metric for a page has deviated against its moving average, or if it has breached an absolute threshold.</p><figure><img alt="An image depicting how we alert based on moving averages" src="https://cdn-images-1.medium.com/max/1024/1*m7NvMMrlwHbQa1kxIeKjlA.png" /><figcaption>Figure 7: Alerts based on Moving Average</figcaption></figure><p>As we trend over time, we can see the impact of our changes. See if you can spot where we made a fix to improve our Largest Contentful Paint (it is not that tough 😄).</p><figure><img alt="An image depicting the performance improvments we have made over a certain period" src="https://cdn-images-1.medium.com/max/1024/1*2-Oc6L0FX-TM8joSpFrjFg.png" /><figcaption>Figure 8: Continuous performance improvement</figcaption></figure><h3>In Summary</h3><p>This really is just the beginning. While building this framework was so much fun, the beauty is in the vast amount of data we capture and analyze. This is the foundation for implementing a performance driven culture, while also ensuring that teams are autonomous.</p><p>#CodeEmirates #CodeBetter #Pagespeed #PerformanceEngineering</p><p>Authors: <a href="https://medium.com/u/c36937f793b4">Shahil Bhimji</a>, <a href="https://medium.com/u/557272ecfec9">Barry Perez</a>, <a href="https://medium.com/u/3dea53318542">Abraham Mathew Muthalaly</a></p><p>LinkedIn Post on Pagespeed: <a href="https://www.linkedin.com/posts/abraham-muthalaly_codeemirates-codebetter-performanceengineering-activity-6981181864589832192-j6YJ?utm_source=share&amp;utm_medium=member_desktop">What is Pagespeed?</a></p><p>For more information on Sitespeed, check <a href="https://www.sitespeed.io/">Sitespeed.io</a></p><p>We’re also always on the lookout for great talent. If performance engineering is your passion, check the <a href="https://www.emiratesgroupcareers.com/information-technology/">Emirates Group careers site</a> for current vacancies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d6818afac5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>