Performance regression testing
The slowdown hiding in years of releases
After a rapier-themed introduction and a Final Fantasy VIII anecdote, Risko Ruus recalls how customer reviews exposed years of accumulated performance problems. He draws on his testing experience with Nokia prototypes and his time at Skype to show how quickly users’ expectations can change.
Finding an owner for hybrid app performance
Ruus describes how web teams, native code, third parties and operational updates all shape a single hybrid app experience. He explains how he brought developers into regular performance reviews and built up his own skills through Lighthouse, coaching and conversations about browser tooling.
Building a repeatable pre-release baseline
Ruus uses a testing heuristic to ask whether the app has slowed down relative to its own history. After finding substantial variance and limited throttling controls in the PageSpeed Insights API, he builds CI jobs that run Chrome and Lighthouse with configurable viewports, CPU speeds and network conditions. He stores the results and artifacts so he can compare groups of runs across releases before regulatory review.
From a score drop to a suspect request
Ruus demonstrates a dashboard that links Lighthouse scores, individual metrics and real user monitoring data. He shows how trend patterns can point to a release or an external change, then compares reports and network requests to identify which changes warrant investigation.
Turning one caught regression into a team habit
Ruus describes how a small Python prototype caught a regression and earned him time to improve the tool. He moves it to TypeScript to make it easier for front-end engineers to contribute, and the team uses release reviews to tackle render-blocking resources, oversized bundles and unnecessary dependencies.
When better scores hide worse evidence
Ruus shows why repeated runs and median comparisons help when scores fluctuate, and how error states, A/B tests and cookie banners can distort measurements. He explores using screenshots to verify page content and describes a Lighthouse simulation bug that made an ES modules migration look slower even though the browser trace showed an improvement.
Measuring the moments users wait for
A video banner raises Largest Contentful Paint by 50%, prompting Ruus to discuss showing a static image before the animation. He shows how his team adds timings for the first tile, all tiles and when elements become interactive. A signup slowdown illustrates how teams can use a shared product metric to connect engineering changes with customer reports and business outcomes.
Scoring journeys beyond the first page load
Ruus reports improvements in Core Web Vitals, app responsiveness and customer reviews after the team starts tracking performance regularly. He then demonstrates an experimental journey score that uses existing end-to-end tests to measure soft navigations, layout shifts and slow interactions. He closes by encouraging web performance practitioners to share their work with the software testing community.
Q&A on browser coverage and test environments
Ruus explains how his team pairs Chrome-based synthetic tests with field data from other browsers and discusses Cloudflare Telescope as an option for broader synthetic coverage. The audience asks about Container Timing for custom tile metrics, and Ruus explains how testing in both pre-production and production can catch different regressions.
Q&A on real devices, memory and throttling
Ruus describes the team's real-device regression tests and its reliance on platform metrics for native app performance. He discusses crash rates and the difficulty of catching memory leaks during sessions that last several hours. He closes by explaining how DevTools throttling helped the team work around the Lighthouse simulation bug.
So our next speaker is Risco Rous, who is a quality assurance engineer who actually only quite recently got into web performance. And as a surprise to absolutely no one here, immediately became obsessed with it. He especially now finds challenges in doing performance regression testing which is why he tried to find out why exactly something has become slower. And I think we can all agree that that is indeed difficult doing that.
It can sometimes feel like finding a needle in a haystack. And this is why I was thinking which pointer device to give Risco. Which sword looks the most like a needle? And so I brought my rapier. The rapier is a more sophisticated weapon for a more civilized age.
It was used mostly in one on one duels to try and stab your opponent to death. And I think both the rapier and performance regression testing requires certain elegance, certain sophistication to be able to take a stab at the problem right in front of you. So Risco, I'm very much looking forward to how you will show us how you can do performance regression testing in a sophisticated way in this decidedly uncivilized age of ours.
Good luck. What an honor. Thank you so much. I already feel the weight of it in my hand, and it's a pretty neat pointing device I would say. Although when I was expecting a weapon to be handed to me, was more looking for something like, you know, and we have a technical issue. So why isn't that one loading? Let me do one more reload.
Oh, right. So one second. Let's try again. This is a web app, know?
All right, here we go. And let me try to also see if the click works. So I was expecting something like this. So who recognizes this weapon? Yeah, quite many people.
So it is a gun blade and this is from Final Fantasy VIII, one of my favorite games, and I want to share an embarrassing story that I once did a little bit of cosplay. And I actually created this weapon together with my grandfather back in the day. So I would yeah, very much like to wield this one, but yeah the rapier is excellent too.
So my job is to find bugs from software. And many years ago I came to work, I looked at app reviews like I've usually done before, and then suddenly it hit me like, oh my god, there's customers finding problems for me with much better adjectives I would use in a bug report.
So I thought like every one of these is a regression problem in performance, but these were not caused by a single release. These were like a pile up of just years of work from being a hungry startup to deliver features on top of features on top of features, and there was just so much desire to get to the market, prove your business model, and no one really had the attention to care about performance enough to really notice and take care of that. So it was a result of a thousand cuts, and I would like to then talk to you a bit about how we took a step back a bit to think how to prevent ourselves from shooting in the foot again like this.
And yeah, I'm a QA engineer by trade. Been doing this for more than twenty years. I work for a company right now called Rushter Interactive. It's a U. S. Company and one of my hobbies is traveling Japan and learning a bit about the language and doing backcountry hikes in all seasons so my record is sleeping in a tent in minus 20 degrees Celsius so far. I hope to beat it if we have a nice winter. And yeah, in my spare time this year I've been speaking at some testing conferences and building this sort of library and exploring how good LLMs these days are at finding bugs from videos and images.
So my career and my story began like 2005 when I was tasked to help and regression test the smartphones back in the day by Nokia. Actually I didn't work for Nokia. Worked for another Finnish company who had outsourced this testing.
Yeah, they were doing testing for Nokia and this Finnish company had again outsourced this to Estonian workers. So there was a big disconnect and gap, but yeah, my job looked like this that I went to work every day, opened up a safe, opened up a prototype touch screen phone before the world had seen an iPhone, and I thought it was great, know, it was amazing, and I started automating tests for this device and everything looked great until what I opened from the safe anymore wasn't the future, but the iPhone was suddenly out, and this became obsolete.
So I kind of sensed that once users had seen already a better experience than they expected from your product too, but Nokia wasn't investing in this capacitive touch screen technology that made it more magical that you had to physically press the screen back in the day. And of course patching in and trying to make more performant devices in the future, it was just too late for them.
And similarly I had seen an experience also when I was working in Skype where the great technology of P2P made free video calls, really, really great for the users in the world, but once the mobile was there this technology and this architecture wasn't performing anymore, and moving to the server based architecture which companies like, competitors like Viber or Whatsapp were able to do very fast, Again, with Microsoft there and trying to do the server based Skype too, then it was again too late and users had already moved on. So here's today's journey.
I'll try to be your conductor, and some of these numbers that I show you are my lessons. I try to build a tool that helps me with this, and I'll talk a bit about then who should be responsible for looking at these numbers and why it matters.
And if we have some time left over, there is going to be also a little bonus track waiting for you. So we come to the ownership problem that usually is faced by larger software companies. So we're not talking about these companies that are started by a man and a dog. These days, of course, a man and an AI agent that can also be a dog for some people.
So in my context, we were working with a hybrid mobile app, and where's the core of the business is inside the web application that's made up by tens of teams, there's also usually a mobile team that takes care of the native mobile pod, and of course there's going to be third party libraries.
You're going to include this. It's going to change the application's behavior, CMS updates from operations, and web view and operating system moving parts too. But for the user, that is still one app, one experience and one ride. So with a death by a thousand cuts problem, so every time a team adds a new feature or there is a third party change, there is potential for the user experience to degrade.
And with hyper focus in startups on just feature delivery, so that's what usually users do end up with. Sometimes the web view gets terminated by the operating system, Sometimes you have ANR issues where something isn't responsive enough, and some pages just take forever to open.
So who should pull this big train? And there is no clear answer, I feel, for this, and it just depends company to company. In our case, we had many people who did try to do their best, but of course communication and aligning these things is hard. So I had a thought that, can I also do something about it? Can I also help?
And there's an American old folktale put to paper by Waddy Piper called The Little Engine That Could, and this book actually was given to me by my CEO that he said that this book had inspired him as a kid, so now I'm reading this to my son. But the main point of it is there's this small blue locomotive who at some point, when other big engines have said, well this is not my problem, I have much more important things to do, but the mindset is like maybe I think I can, I can maybe make a difference?
And so with this mindset, I just try to do my best of course, but the problem with software testers I feel is that throughout the years we've been mostly focusing on just testing that the back end doesn't crash, that the database still can perform with load testing tools like JMeter or Gatling, and there's very little knowledge in our community about how web performance should work, like what are the metrics, what are the three letter acronyms.
And in my organization I also sensed and understood that even developers were quite new to this. So then I jumped down to the rabbit hole to the mysterious world of web performance where most of you live in. And this is how I went about to try and learn more about it. So first, since Chrome ships with Lighthouse, I filled it with Lighthouse, showed it to my developers, and they all said, well, yeah, the numbers look bad.
And then I went to web dev, web. Dev, read more about okay what these numbers actually mean, how can we interpret those, found amazing web performance YouTube content, binged on that, and I thought, okay, I alone again can't pull this thing, so I recruited some colleagues. We established regular performance reviews, looked at these numbers from release to release, and established like a lunch and learn session where we all watched the Performance Now videos together and we are really looking forward to this. I found Harry Roberts's course on how to set up dev tools for performance testing and bought the course, and since I had bought that, he sent at some point an email to all the clients of his saying that hey, he offers now this community where he can also give some performance coaching.
So I signed up for that and asked for an NDA to be signed between him and my company so I could also bring my work context to these conversations. And yeah, the highlight of my last year in my career I think was joining this conference and actually being together with you Cause just by watching the YouTube videos you're missing out on chances like I had last year where I just was talking to Barry Pollard and yeah, the PageSpeed Insights tool and maybe there's variance and got to know maybe the infrastructure behind this tool or how I was also then later saying, hey, how does memory debugging work on Chrome?
And he said, oh actually in five minutes there's some people coming from Bloomberg and we're actually going to talk about this topic, so do you want to step into a side room with us? And I was like, well great, that was Jason Williams I believe, and really smart people there from Bloomberg, and I was like amazed to have this sort of an opportunity.
So yeah, now they're I'm just also keeping my eye on the Web Almanac every year, and then looking at the notes from the WR3C RAM community. Onwards. As a tester, we are usually not equipped with perfect specs to test the software with, we need to navigate the landscape and need to have these sort of heuristics and ways how to recognize problems.
And these are called oracles in our domain. And a useful mnemonic is called Hiccups, created by James Buck. If we try to translate it to the web performance terms, then with a letter like c with claims, could say, oh if the page itself or the app itself claims that we are super fast, we already have a good Oracle judge that hey, this isn't fast.
Or with a letter h with history, that's actually performance regression testing. So did it get slower than it was before? So that's what I'm gonna use today, And to be able to judge whether we got faster or slower, I needed to think of a way to do it and evaluated some off the shelf options.
First experiment I had was running PageSpeed Insights over API, and got a lot of variance with it. Of course, my site also had variance built into that, so it was really hard to tell which is at fault. But what I wanted to do, I didn't really want to do just one single run and compare it to another.
I wanted to group together one major releases runs against another to see if our changes really made the difference. And I didn't find really these slow four gs throttling options sufficient, I wanted to test not something that was blazing fast, but slightly representing our median speed of our users in those countries that we operate in. So unfortunately through the API with Page Speed Insights I couldn't do it, so I needed to really start building something different.
And one might ask, why even such high emphasis on synthetic performance monitoring if we have RAM available? So in my work context, we can't just do continuous delivery and ship to production multiple times a day. All of our releases need to go through regulatory review, need to be approved, so this has a lot of paperwork included, and it's just much cheaper to fix these things before we hand them over or put them to production.
And this is how I went about it. So right now we have CI jobs where I run the tests with different viewport sizes and performance profiles, CPU throttling and the network throttling that we want for our needs, and just start Chrome with Lighthouse as a script, and all the artifacts that we can extract I save for later inspection and use, and save these results to a database for visualization with my own dashboards.
And yeah, this helps and gives me a chance to look at releases from one to another. So this is how it would look like when I would maybe open up the dashboard and tool. So I've color coded nicely all the results based on Chrome's recommended thresholds. Obviously these are not the goals that you should aim for, but you know, the picture might sometimes look like this.
So in the first column, the yellow here and some green here, so that would be the lighthouse score, and so followed by the other five metrics that are composed or make up that score, plus then some predictor metrics like the total page size or JavaScript execution time. And whenever I would see a diff in the Lighthouse score column that is like a lot of numbers, I could then look, okay, which other metric then changed and then try to see in which direction this might go.
And with this tool, it's quite helpful to also have these sort of different filters. So if I've selected a specific domain or a page that I'm interested in looking at, I can also just jump to the RUM data too very easily and open up my RUM dashboards that I've created. So then I can see if the synthetic checks also translate it over to what we maybe later see in production or in staging, you know, RUM is sometimes useful but not real uses.
And yeah, every cell here is kind of clickable and does special things. One option is like if you then want to jump into a particular diff, I could see a pattern like this. And this would tell me, okay, in production if I was monitoring the performance, then that wasn't actually a release change that caused it. Probably someone did a CMS change or a third party change that we don't version control.
But a pattern like this would tell me, oh, I need to now look into what is going into the next release or what into the release that maybe I didn't look for. And all of these points can be hovered, so I can kind of see maybe it is the benchmark index, how it ran, maybe that kind of affected this run, or if I click on a point I can go in and download all of its artifacts that were already saved for inspection.
And if I select two points then there is like a diff option to compare the two lighthouse reports. And the diff is quite quite big so I did try to use the existing official diff tool as well but I didn't find it exactly fit for my needs. And then here, yeah, I tried to look at how actually the Lighthouse score then changed, what contributed to it by how much.
And in the report there is also then a network request diff tool so I can kind of see which requests in the blue color remained the same size or the green ones which were new resources or the yellow ones which are modified and red ones which were deleted. So I can kind of usually what I do is, hey, what was the diff size of maybe more than two kilobytes, and then I will only have a few lines to check which modified or was introduced that was really maybe meaningful for the performance.
And yeah, like I said, for the other metrics too, we kind of diff them in various ways, so usually it gives us a hunch in maybe at what tickets to look at that might have caused that change to talk to the correct people. So the metrics tell here to me that something got worse. Sometimes it gets better, and it has gotten better.
And in the diff we try to understand and answer why, together with inspecting then the changes that went into the last release. So some people have asked me, but how did you even get time to work on all this if I was just a QA engineer and responsible for all the other things too? And to be honest, I just took some time on the side.
So just first collected some data, built a very MVP version of this tool. Back in the day I even created that in Python and with pandas and the library, because I was used to doing some data science work in there. But then I kind of, with agents coming into the play, I converted everything to TypeScript so that front end engineers could also contribute to this project more easily, and the programming language wouldn't be the barrier. But once I had the data, I kind of caught one performance regression, showed it to my boss, who showed it to my boss's boss, and then if the data already convinced that we could catch something, then the time was there to work on and start improving this tool.
So once we have something that we can use, it was time to get back on track and start to improve the performance. With the baseline there, it doesn't need to be green. You just need something to hold yourself steady. And some developers I was able to recruit on board who also cared for it and had a passion for web performance, then we established these regular review meetings whenever there was a new release that shipped. We could look at the numbers and also then meanwhile check out what is going on in production.
And then these conversations started to lead, hey, how can we then optimize the critical rendering path? How can we have fewer layout shifts? How can we improve interactivity? And naturally we were able to also prevent future regressions from happening while we went all through this.
So some of the improvements we were able to make or regressions we called was there was a lot of things that were render blocking, so we gained a lot when we tried to make almost everything not render blocking, and then started to ship smaller bundles, and anyway less code that we didn't really need.
Sometimes there were extra large bundles shipping by accident that would have caused big problems for us, and third parties were also scrutinized that hey, actually we don't need all these libraries. We don't need two jQueries, right? Okay, we didn't have jQuery, but so. A big, big improvement definitely came from switching to more modern image formats that have better compression, and fonts also didn't need all the weights and families and so on.
So we had numbers, but the numbers weren't always clear. We might be still facing a situation where we are super happy. We finally got a green LCP and feels like you I don't know if you've been to Japan, but there's this gacha machine so you get a legendary item. But your happiness just can't be based on that luck because on the same build, on the same machine, on the same day, with the second run you could still get a much worse score.
So that was, yeah, of course variance, so sometimes created by the infrastructure you are running on, sometimes just how the third parties behave, sometimes how your own application code behaves, a lot of moving parts, sometimes even your own mood. So you would just think, oh, maybe just computers are just like this. Just work. But yeah, when we try to collect more points, then if we squint, it's really still hard to tell which is faster, the blue ones or the little brown ones.
But once you kind of plot also the medians, then a 12% decrease in speed might indicate, hey, maybe we have a problem at our hands. And especially the more data points we have, the more we can potentially believe into that. And when the numbers sometimes also lied for us is that we got really good scores from our error pages, so the page we started to load actually didn't maybe end up being the page.
With SPA applications, it didn't really route to a specific error page, if you just had an error state or something like that, then Lighthouse also didn't catch that hey, the page didn't load properly. Sometimes you have AB tests running and you are not always measuring the same thing, and with the timing of how elements appear on the page during page load, then yeah, often we found okay, there was a very fast cookie banner element or banner text that's now the LCP, but yeah, every run didn't have this sort of same behavior, so it was tricky.
So we should somehow check that the correct thing was still loaded before we trust the score. And of course there are other heuristics how to do it faster and cheaper, but one way to look at it these days is also with kind of the library, or just with an LLM basically, and saying, asking it, prompting it, you know like was the correct image now shown once the full Lighthouse screenshot was loaded.
And with newer models and faster models, this becomes quite reasonable so you could get a response in less than five seconds, and the cost I feel is also going down. And the open weight models are also getting better and better at this. So another issue we faced was when we tried to make the site faster, the Lighthouse numbers actually dropped by a lot.
And when we tried to switch here from UMD bundles to ES modules, then we saw that with the Lantern simulation, the scores were much worse for FCP, LCP, but when I looked at the trace file, then actually it was fast. So our option back then was just to switch now to DevTools throttling, so the simulated lantern algorithm didn't really work for our site's architecture the way it was loaded, and I found that it was caused by a bug in Lighthouse that was just recently fixed, so it should be included in Chrome 159, and I did try it out in the cannery build.
So right now it is working, and it should be live also already in PageSpeed Insights. So thank you Google for fixing that. I'm just thinking whether I will switch back to Lantern because all our scores and historical baseline will not still be now the same anymore. Plus I really like when the lighthouse LCP and those performance numbers really match up with my trace file that I can also later inspect.
So time I discovered was that I've caught a super performance regression, and LCP increased by 50% when I just was looking at the numbers. But when I was looking at the behavior, I saw, okay, someone has added a video banner and replaced a static image with it. So product was saying, yeah, this is what we want.
This is the user experience, what we are after. So the question should be like, then yeah, should we just ship it, you know. Who thinks we should still switch back to static images? Because LCP matters, right? We like green LCP. Who thinks there is a third option?
Many people think there's a third option. So since SEO also matters, so we were not only billing things for our product, and our users in that sense that what they experience when they're using the app, but when search ranking comes into play then still showing an earlier static image of what's being loaded in the end with an animated feature would be a good solution, and we would fix the SEO problem too.
So now that we had looked at a lot of LCP numbers and optimized that, we kind of realized though that very often the LCP element changes, so we don't have actually a baseline we can trust. Other times, you know, explained before, the LCP element, even with the same version, can just change based on timings and so on.
And to be honest, like a lot of the times having the LCP element really fast isn't what the business cares about. They may care that in Netflix that the user can maybe open up from their last viewed whatever movie. So we need like metrics to measure our own moments, and this is what I went after when I heard about Twitter's, you know, time to first tweet, so similarly asked to implement things like time to first tile or time when all tiles are presented for the user in the menu, and then we might have the LCP event happening. And finally, we also started to measure when these elements some elements we kind of disabled at first during launch because of some reasons and when these now became interactive for our customers, then we also measured these moments.
And we started really focused on those. And in my Lighthouse dashboard, in my report, I also started to extract and capture these moments and visualize this in my dashboard. So not only we would see then LCP score now changing, but these business metrics too for those pages.
Nowadays, who's responsible for these things still, right? So if we have a regression in our signup page, for example, that accidentally a three megabyte JavaScript bundle was shipped that included dependencies that were actually not needed, Then for engineers, they would speak in this language that yeah, yeah we have a big bundle size or better, yes, if they know how to say LCP, this improved.
For product, they would speak as the sign up page now is slower, so it became usable by more than three point five seconds. When our operations would see a bug like this, they might just sense it through app reviews or through customer support tickets saying maybe like, hey, it doesn't feel so fast anymore, and the business would see fewer sign ups being happening on our site.
But they wouldn't be able to connect this to the original reason, right? So one way would be to kind of focus on I think still the product metric, and everyone I think can understand this language that the sign up experience now got slower, we need to do something about it. And obviously there are tradeoffs that need to be discussed as part of it, so not everything is just one man's call.
And I think we are all pulling this train still together here. It's just we need someone to translate what's happening. And yeah, this is just the way the humans are, right? So we need to find the communication that works for all of us, not just for a single person. And I kind of feel like for engineers it's kind of yeah, quite a challenge and something what to pick up, and for the other parties too to find that common ground.
But yeah, once we kind of have these sort of benchmarks, and some people call these sheriffs, these duties. In our company we sometimes call them janitors who still look at those metrics and start these conversations. So I think these issues like this then can be prevented from happening once you have processes like this in place.
In our case, it is just still a simple dashboard and a meeting. If we would be doing continuous delivery, of course, more of that would be automated and handed off to agents these days and maybe have workflows for you doing that. So some takeaways from the talk is that once we're able to focus on just this single metric of Lighthouse score, so Martin really hates that number, I love it.
It just gives me something to just aim towards for, and I really felt like once we were chasing those small gains, like every week, every week, can we kind of make it a bit more green, a bit more green. Those real numbers that our users care about, these follow too. So the ANR rate really went below the bad behavior threshold for us, and the Core Web Vitals metric improved.
I was tracking that, how are we doing compared to our competitors, and the app reviews, they also became much more friendly. So here's like a quick pre departure checklist for anyone like me maybe getting and trying to embark on a journey like this, so I not going to read aloud everything from this slide.
But in general, what I would just say is that and encourage everyone who is like me, just don't you don't need to be fast to start with this, you just need to know when you get slower, and Lighthouse enables you to do that I feel. But the journey doesn't end with just a single page load for the users. It's only for the beginning for a single page web application.
As a next trip, I as a tester could kind of sense that we have this mighty test infrastructure already, and all these test frameworks for end to end UI tests set up, so maybe why not try and take advantage of that because they can already drive your single page applications to the state that you might want to measure and you're interested in.
So you don't really need to build in some flows in like a UI record kind of tool, in a RUM tool or something like that that might be available if you have the money. But I kind of feel like the test reports that you already have, they can be complemented with some performance checks too.
So as an experiment, I've tried to also create a journey score like Lighthouses for single page applications. I've instrumented my test automation framework in a way to collect all these metrics like Lighthouse does for the page load score, and then try to extract some metrics from the page. So where does this work?
Okay. From the view changes too. So Soft LCP is now available, so whenever there is a new spa navigation happening, I can extract that, and there are two new acronyms that I've created, TID and LID, so I'm gonna talk about them in the next slide, plus the CLS. So once I kinda combine all these scores together, I also penalize the lowest score and count it twice to just not have these outliers that we might otherwise miss.
So yeah, and in the end of a test or a journey that you would anyway take that exercises, maybe a smoke test or like a UI test that your business cares about, you could assert the performance in the end too, and start a conversation if that check fails. And for the soft navigations part, then the TID, what I took right now, would be the interaction delay.
So once you start a new navigation, I try to measure this. So did the next paint appear fast enough? And for the longest interaction delay, inside the view there are interactions that are happening that don't cause a new view change, then I try to find out which was the slowest and report this to.
So if anything like that becomes very problematic, I can spot it. And it's like a heuristic, it can of course fail, but might be useful. So as a final kind of encouragement, I would like to ask every one of you that I've been to many software testing conferences and looking at their programs, but in the QA field we don't really see you, So I've never seen a front end performance oriented talk talking about how you guys do things.
Go get one. There are many out there and my top picks are here. These I've been attending recently. In March I'm going to return to The Netherlands to speak at Test Automation Theis about the visual reasoning stuff and finding bugs from images, but go and try and submit talks about what you do.
I think it's super interesting. And yeah, final thank you for all the community for kind of welcoming here. So it's very welcoming for newcomers. Yeah, thank you so
much. Wonderful, wonderful talk with scale. Exactly had I... As I had hoped and envisioned. It isn't very nice to see someone from a different part of the industry crossover into what we're doing.
Yes. Sit down. That's a good point. There's more, I've been told this is vodka so if you want to relax after the tone. Good news is that people are finally waking up. It's it's also 1AM, 1PM already. So we do have some questions from the audience. The first one I think from Christian.
Who asked, do you do you also track, because you're tracking the new releases right? You compare releases. Do you also somehow take into account new browser or operating system or third party rollouts that, change their version that might might impact your things too? How do you handle that?
So so far we keep it simple and we just, update Chrome, with the synthetic test but in, rum we measure and what's available from other browser vendors too. So yeah, it's it's kinda how we approach it and...
Okay. I'm gonna have... I'm gonna ask a critical follow-up question on that. Bit of my pet peeve. You say it's Chrome. I assume you only test in Chrome. You don't do Firefox and Safari.
I used to. I used to a lot and I used to test I e six and have virtual machines and spin up things like that, but I mean, I played around with Telescope project and to actually bring in those cross browser performance metrics too, But, I just haven't gotten yet to extract all the goodies from from that and and take it to the next level, yeah.
For those not aware, Telescope is a relatively new project from Cloudflare, that does allow you to do synthetic testing across different browsers. And that they've promised yesterday to to start putting more attention into you. Please do. Very interesting project. Do do you do you think you you're lacking something by not having the Safari and Firefox coverage at this point?
Of course you might have surprises, but I think once you still have the rum data, and now that we have some more core web vitals from Safari too, then this reduces quite a bit of that risk already. It just makes your feedback loop slower, and you just can't do these real preventative tests so well yet.
So once you have the time and money to invest in that, then yeah, absolutely we should go for that too.
Okay. Another very good question from Jordi is, how did you measure the TTFT and TTAT? Is that with container timing or did you do something custom?
Time to first tweet like the...
First tile and...
Time to first...
Time to all tiles, think that was.
So I would defer this answer to the source code repository because I was the one who created that ticket that we need to measure it, but the implementation details I don't remember by heart. But I feel it's tricky to answer right now. So yeah, I would need to get back on that to to double check. I don't wanna jinx it and say something wrong.
Okay.
I think that also, answers Jason Williams' question. Who asked about, have you considered using container timing API?
Oh yeah, that talk I remember. So I looked into that but I think now it's included, right? Or there was a plan to include, but yeah, a year ago or more than that it wasn't available.
Yeah, But you often rely on other people to implement the metrics and you just...
Yeah. Yeah, I'm not a web developer myself.
I'm not even gonna try to pronounce this name. But they ask a good question. Do you recommend running synthetic testing in a dedicated pre production environment or in production with with the real third parties and dependencies?
Yeah, would recommend doing both. Know, because if you're doing pre prod, you can prevent issues. If you are doing it in prod, you're testing it in more realistic conditions and you can maybe potentially catch issues that you don't have in pre prod for you. Yeah, both are good I think.
Gustaf asks, are you doing any testing or monitoring on real devices? Because I assume the synthetic ones are all running on the server somewhere. Are you actually using especially mobile devices as well?
Yes, so we have regression tests happening on real devices, but the performance part we're more relying on again metrics we can get from Google Play Console or whatever we can get from iOS, so it's trickier. I looked into trying to understand how far the mobile native hotel world is going.
So looked at what these companies are doing in that space. So right now we're just kinda stuck with one vendor, but it would be nice to use something that we could potentially switch the vendors if needed. Maybe the metrics these guys and girls find, would be then something I would use.
Cool. There's also a question, they found the the sign ups count business metric. Very interesting, so did I. That's a very concrete one to use from product and I think the higher ups would also understand that. They should. Are there any other things that you might remember for business metrics that jump out to you that have correlated very well with performance regressions in the past?
So let me try and think about it. Business metric naturally would be if still the business cares if the application crashes. A very important metric still is the application crash rates for us. And if we don't treat, for example, memory real well, so in a single page application, if the user loads the web page, and then in a hybrid web app stays playing or staying on that site for two or four hours.
And this is not something as humans, even regression testing, we are not so persistent as our real users. We can't stay in the same spa as loaded for so long time. So if the memory leaks are there, then business is gonna care if the operating system decides it's enough for you. So we've been trying to learn now more about it, how to really test and optimize for that, but it's early stages, and I would like to talk more people who would know how to catch performance regressions like that during the talk, during the conference this year.
I think that's an excellent point because we do definitely have gaps in reasoning about memory usage on the web. This this was talked about previous years as well, I remember Tim Tim Cadillac I think even last year or two years ago talked about that. We have people from from Slack who were also running into just trying to measure that for their applications.
So yeah, I do think there are a lot of good people here to talk about that. And a gap that we should fill. I think I'm gonna go for the last question. Is that okay? Yes, fantastic. Because we no longer have audience questions so I get to ask the one question that I really wanted to ask. I get so much stress when I hear about lighthouse toddling a lantern as a network engineer.
You said you use real realistic throttling. What tools are you using?
So again, I think it's not again like the as a network layer expert, you probably know better than me, but Chrome has the two options like simulated and DevTools throttling. So the delay I think they're also still adding artificially, so we're not, we don't have like a proxy in between where we actually throttled the network. But again, it still helped us to overcome that particular bug and still load the site slower as it would be maybe potentially under those network conditions.
Okay, fantastic. Thank you so much Ms. Kerr. And I agree. Thank you. Yes. Take care everyone. Fantastic.
People
- Harry Roberts
- Barry Pollard
- James Bach
Technologies & Tools
- WebView
- Apache JMeter
- Gatling
- Lighthouse
- Chrome DevTools
- PageSpeed Insights
- PageSpeed Insights API
- Python
- pandas
- TypeScript
- Lantern
- Cloudflare Telescope
- Container Timing API
Standards & Specs
- ES Modules
Concepts & Methods
- Peer-to-peer architecture
- Hybrid mobile app
- Application Not Responding
- Test oracle
- HICCUPPS
- Synthetic performance monitoring
- Real user monitoring
- Critical rendering path
- Largest Contentful Paint
- Single-page application
- A/B testing
- Universal Module Definition
- First Contentful Paint
- Core Web Vitals
- Cumulative Layout Shift
Organisations & Products
- Rush Street Interactive
- Nokia
- iPhone
- Skype
- Google Chrome
Works
- Final Fantasy VIII
- web.dev
- Web Almanac












