NordVPN boosted the velocity of its login person stream by 60% utilizing Baseline Profiles

Posted by Ben Weiss, Senior Developer Relations Engineer

NordVPN is a digital non-public community (VPN) app that protects customers whereas they’re looking the online by offering them a safer and personal connection. As a community utility, NordVPN’s customers deserve a responsive UI, permitting them to arrange their protections at a second’s discover. That is why NordVPN builders not too long ago built-in Baseline Profiles, a profile-guided optimization that helps Android builders enhance an app’s startup and runtime efficiency utilizing ahead-of-time compilation.

Enhancing efficiency with Baseline profiles

As a part of its product roadmap for 2023, the NordVPN crew wished to spice up the appliance’s efficiency. Earlier than implementing Baseline Profiles, NordVPN’s startup instances on Android units didn’t meet the crew’s requirements, prompting them to look at new methods to make the app run higher.

After exploring methods to enhance its runtime efficiency and streamline the login course of for customers, NordVPN builders recognized a possibility to make the app quicker utilizing Baseline Profiles. Baseline Profiles lets the Android Runtime (ART) know which code paths to optimize by means of Forward-of-Time (AOT) compilation earlier than an app launches, boosting velocity, stability, and total responsiveness throughout startup, when navigating by means of the app, and whereas viewing content material.

“App velocity and stability are important for a greater person expertise, so we’re all the time in search of new methods to enhance NordVPN’s efficiency,” mentioned Himanshu Singh, senior Android engineer at NordVPN. “We wished to hurry up the app’s load time and make launch and navigation quicker than ever.”

By making use of Baseline Profiles, NordVPN improved its launch velocity by a median of 24%. Utilizing instruments like Android Vitals, the NordVPN crew measured that it had decreased the appliance’s cold start time from 4.3 seconds to three.2 seconds, the nice and cozy begin time from 2.7 seconds to 1.8 seconds, and the new begin time from 1 second to 0.7 seconds.

After implementation, NordVPN builders’ additionally observed that Baseline Profiles made it quicker for customers to login to the app, enhancing the person login stream. The login stream is measured from when a person begins an app to when a person is logged into it. Utilizing the Macrobenchmark library to observe the enhancements, the crew noticed that the NordVPN app runs its login stream 60% quicker than earlier than.

A black quote card featuring a headshot if Ernestas on the right with text in white that reads “The introduction of Baseline Profiles helped us achieve outstanding results, elevating our application’s speed with minimal effort.” — Ernestas Balčiūnas, engineering lead at NordVPN

Integrating and testing Baseline Profiles is simple

The convenience of implementing Baseline Profiles impressed NordVPN builders. The accessible assets, in-depth documentation, and codelabs from Android allowed them to reinforce the app’s UX with out having to write down an in depth quantity of code themselves.

Utilizing the Macrobenchmark library, NordVPN builders shortly generated Baseline Profiles for the appliance. To do that, they used a Gradle managed device, which enabled them to create new profiles with out a bodily system. Utilizing a Gradle Managed Machine additionally allowed NordVPN builders to create fresh profiles for every app launch construct on their Steady Integration platform. Trying ahead, NordVPN builders plan emigrate Baseline Profile era to the official Gradle plugin, which is able to additional automate profile era.

NordVPN builders mixed improvement workflows to create an integration pipeline, permitting them to check the app below varied situations. Then, the Macrobenchmark library ran Baseline era assessments, pushing the most recent Baseline Profiles into the code base.

A black Quote card featuring droid on the right side and a green half oval overlay on the left with white text that reads, 'Applying Baseline Profiles in the NordVPN application led to a 29% improvement to overall in-app speed.'

A fast increase to app high quality

After integrating Baseline Profiles into NordVPN’s code, its builders noticed quick velocity enhancements. The engineering crew assessed the app’s total velocity after ending the venture and located that, past enhancing the app’s launch instances, making use of Baseline Profiles led to a 29% enchancment to total in-app velocity.

“We’re continuously working to enhance app high quality, and Baseline Profiles integration has confirmed to be one of the crucial profitable steps we’ve taken,” mentioned Šarūnas Rimša, product proprietor at NordVPN. “We’re serving to customers entry the providers they’re entitled to quicker. What’s to not like?”

Get began

Study how one can enhance your app’s efficiency utilizing Baseline Profiles.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button