Visit the post for more.
Overview
The article discusses Wikipedia's transition to HHVM, highlighting the performance improvements achieved in page save times and CPU usage. Brett Simmers from the HHVM team shares insights on the impact of this transition on the editing experience for Wikipedia's community.
What You'll Learn
1
How to compare performance between PHP and HHVM during a transition
2
Why using HHVM can significantly reduce page save times
3
When to consider transitioning to HHVM for PHP applications
Key Questions Answered
What performance improvements did Wikipedia experience after transitioning to HHVM?
After transitioning to HHVM, Wikipedia saw the median page save time drop to about 45% of what it was with PHP 5.3, meaning edits were processed about twice as fast. This improvement significantly enhanced the experience for editors, especially for larger pages that previously faced timeout errors.
How does HHVM affect CPU usage compared to PHP?
The article indicates that CPU usage decreased during the transition to HHVM, contributing to overall better performance and efficiency for Wikipedia's editing processes. This reduction in resource consumption is critical for maintaining a responsive application.
Key Statistics & Figures
Median page save time on HHVM
45% of PHP's
This statistic indicates that edits are processed about twice as fast on HHVM compared to PHP 5.3.
Median save time
7 seconds
This is the median save time for edits on HHVM, highlighting significant performance improvements.
Technologies & Tools
Backend
Hhvm
HHVM was implemented to improve the performance of Wikipedia's editing process.
Backend
Php 5.3
PHP 5.3 was the version being compared to HHVM during the transition.
Key Actionable Insights
1Consider implementing HHVM for applications that rely heavily on PHP, especially those with high editing activity.HHVM's ability to reduce page save times by about 55% can lead to a more efficient editing experience, making it a valuable upgrade for content-heavy platforms like Wikipedia.
2Monitor performance metrics closely during the transition to HHVM to identify any potential issues early.Direct comparisons between PHP and HHVM during the transition can help pinpoint specific areas of improvement and ensure a smooth migration process.
3Utilize static caching for most page views to optimize performance further.Since most page views on Wikipedia are served from a static cache, leveraging this alongside HHVM can maximize efficiency and reduce server load.
Common Pitfalls
1
Failing to monitor performance metrics during the transition can lead to unnoticed issues.
Without proper monitoring, teams may miss critical performance bottlenecks that could affect user experience.