“More than 10 years ago, Amazon found that every 100ms of latency cost them 1% in sales”
Performance is a critical factor that significantly influences user experience and conversion rates. Fast-loading web pages ensure that users can access content quickly and efficiently, reducing the likelihood of frustration and abandonment.
In e-commerce and online transactions, this is particularly important as even minor delays can result in lost sales and decreased revenue. High performance not only enhances the user experience but also builds trust and encourages repeat visits, ultimately driving higher conversion rates and boosting customer loyalty. You can read more on improving conversion rates in this blog post.
We started by benchmarking Hyperswitch Unified Checkout and Stripe Payment Element - by setting up a controlled environment, selecting the right tools, and carefully choosing the metrics to evaluate.
This setup included:
To conduct the benchmarking, we built a lightweight demo application using Next.js. This app served as the test bed for evaluating the visual loading process of the pages. This setup allowed us to accurately measure key performance metrics and closely mimic real-world user experiences.
Most payment solutions offer javascript iframes to power the checkout experience and benchmarking web clients that load within an iframe is tricky. Traditional tools like Lighthouse and PageSpeed Insights are not suitable because they could not accurately measure the performance within an iframe. We decided to go with WebPageTest by Catchpoint, a tool known for its detailed and reliable performance metrics.
Each of these metrics plays a significant role in shaping the user experience:
The metrics observed for Hyperswitch in the sandbox environment are not only closely aligned with those in the production environment but, in fact, show even better performance in production. This means that the speed, responsiveness, and efficiency seen in testing in a sandbox environment are actually surpassed in real-world conditions. Find more here:
1. Hyperswitch Catchpoint Report
3. Hyperswitch Catchpoint Report (Production)
In this comparison of card-only web clients, both Hyperswitch and Stripe perform admirably. Hyperswitch demonstrates slightly faster rendering and overall load times, which can be beneficial for applications where speed is a top priority. It achieves visual completeness more quickly and has a lower CPU busy time, contributing to a smoother user experience. Stripe, on the other hand, offers a wide range of features with a more modest page weight and fewer instances of blocking time, which can be advantageous in maintaining steady performance under varying conditions.
In our next article, we'll dive deeper into the performance metrics and optimization strategies that make the Hyperswitch Web client so effective. We'll explore the advanced techniques and technologies that drive its superior speed and efficiency, providing you with actionable insights to enhance your own web applications. Stay tuned to discover how Hyperswitch achieves its impressive performance and how you can apply these optimizations to deliver exceptional user experiences.