Skip to content

WordPress 2.4 Performance Profiling

November 13, 2007
by Ryan Boren

If you’ve been following Peter’s weekly digest posts, you can see we’re working hard on the next release of WordPress. One of the main efforts in 2.4 is improving performance. I’ve been busy with xdebug and kcachegrind finding places where we can speed things up. If you have a theme that uses widgets or custom header images, 2.4 should be a good bit faster for you. We found a couple of time-wasting bottlenecks in those areas that are now gone. One scenario was burning up 10% of the total page load time. We reduced that to a fraction of a percent. That’s a nice savings. We’ve also been tweaking the filter/action system to make it as fast as possible. The filter and action hooks are fired off many times per page load so even little savings add up.

Caching is also getting attention in 2.4. We’ve had the object cache for awhile now, but there were some areas of WP where it wasn’t being used. The object cache now caches quite a bit more stuff. If you are using the APC, XCache, or memcached backends for the WP object cache, you will notice a few less database queries in 2.4. We also have an Advanced Caching plugin in the works that caches even more stuff. On many page loads you will see zero queries. If you have a fast cache and want to ease DB load as much as possible, this plugin might be for you.

53 Comments
  1. November 13, 2007 5:05 pm

    hey, greetings from Beijing.

    Actually, I’ve been focus on such problems and pointed them out at WordCamp Beijing.

    I am really glad to see this post, I had translated it into Chinese to tell all the WP users in China :)

  2. November 13, 2007 6:23 pm

    I can’t wait for it. My site is graphic intensive.. especially on the header side. Thanks in advance for doing all this. WordPress is the best!

  3. November 13, 2007 6:25 pm

    Ryan,

    Out of interest, do you notice the changes as a user viewing a WordPress site if you’re using a descent host or are they more ‘be friendly to hardware’ style improvements that the general public won’t notice?

    Al.

  4. November 13, 2007 7:43 pm

    I noticed some changes that could increase speed through php scripting modifications but i figure you know what they are on a site earlier today but i cant seem to index that site I found which stated simple corrections to everyday php usage terms

  5. November 13, 2007 7:44 pm

    Worth looking forward, do not know when released WordPress2.4

  6. November 13, 2007 7:45 pm

    Great stuff! Looking forward to the next release of WP. To infinity and beyond!!

  7. November 13, 2007 9:00 pm

    Awesome its good to see a focus on security and performance in WordPress than new features.

  8. November 13, 2007 9:10 pm

    Everything sounds great, but I hope you guys don’t drop more tables.

    A good image upload and control over images and thumbnails is what we need too.

    When do you guys expecto to go out with the 2.4?

  9. November 13, 2007 10:09 pm

    Performance improvements are always great to see.

    A bit off-topic but does anyone know if the wordpress team has considered adding functions to improve usability to the default themes? I’m referring to increasing text size, decreasing, as well as fixed width and fluid. Many people i talk to when conversing about sites agree that if these features were in wordpress by default it would be yet another feature that would require future and even current users to take notice.

  10. November 13, 2007 11:06 pm

    Anything to speed up performance would be great! Looking forward to the upgrade.

  11. November 13, 2007 11:10 pm

    great news – but if i use the eaccelerator backend and the adv. caching plugin (the new one)and wp supercache (0.4), it seems that they don`t play very well together.

  12. November 13, 2007 11:21 pm

    perhaps you could accelerate the admin interface as well. it’s even slower than the website.

    thanks for all your work

  13. November 13, 2007 11:54 pm

    Finally! Though my blog is still very young and not getting much traffic yet, prevention (from certain server doom) is better than cure :D

    I’m looking forward to 2.4′s release!

  14. Frank permalink
    November 14, 2007 12:34 am

    I have eaccelerator on my server, but how do I enable the eaccelerator WordPress backend? And does it work with WP_super-cache?

  15. November 14, 2007 1:00 am

    @aw:Wow..

    I think the speed of WP may be the most difficult problem to be solved…Everyone would like it when it had a good speed… Caching is popular not beacuse it is looking friendly to search engineer but can speed up the WP…

  16. Chuckles permalink
    November 14, 2007 6:33 am

    Hopefully at some point WordPress will begin enforcing quality control on its plugins and themes. I have found numerous errors that could have been caught if some simple user testing was performed prior to releasing plugins and themes for download. At this point it seems as though WordPress is more concerned with seeing how many themes and plugins can be realeased instead of ensuring that they meet minimum quality standards. It is my sincere belief if basic testing occurred before releasing them for download WordPress may not have produce so many updates.

  17. November 14, 2007 7:16 am

    This great news! When is the release?

  18. November 14, 2007 7:37 am

    Does this mean that there will no longer be a need for the third-party cache plugins, such as WP-Cache?

    And what about finally fixing that bug in Safari 3, which strips out paragraph returns?

    Peace,
    Gene Steinberg

  19. GoodThings2Life permalink
    November 14, 2007 7:39 am

    To be honest, while I’m thankful for the performance improvements, I’m a bit more interested in the efforts to revamp the Administration system. How is that effort going? Perhaps a blog update about that is in order…

  20. November 14, 2007 8:22 am

    i think stuff like wp-cache, 1blogcacher or wp-supercache will still be needed (in play with the new adv. caching plugin.. and to make it better, using object-cache.. but it`s an improvement.. i`m running 3 snapshot blogs and the last 2 weeks the changed were quite cool.. ;)

  21. November 14, 2007 9:13 am

    First, thanks for all your work and I’m excited to see the performance improvements you’re working on!

    I do want to second the requests above – could you talk a little about the administration part of WP. Is there an intention or actual work going on to speed that up / further improve the interface?

  22. November 14, 2007 9:34 am

    Is there a difference between Wp-cache (it caches pages?) and the caches you mentioned (object cache?)

    Also, every time I edit properties of an image in the post editor, I get two of them. Is this intended behavior or a bug?

  23. November 14, 2007 10:44 am

    Wow their already talking about 2.4? I haven’t even updated to 2.3 yet. LOL

  24. November 14, 2007 12:30 pm

    Excellent! Can’t wait.. Superspeed us!!

  25. GoodThings2Life permalink
    November 14, 2007 12:31 pm

    Me either, Jenny… tags just aren’t important enough for my blogging needs, and I’ve been too busy with my day job to worry about it.

  26. November 14, 2007 12:34 pm

    Fantastic stuff!

  27. November 14, 2007 1:05 pm

    Hi Maxim,

    with the object-cache.php (e.g. for apc, xcache or eaccelerator) you can cache it in the ram of the system.. so its sure a little bit faster.. but there are more freaks around who can explain it much better than my little self.. just have a look at php caching modules/extensions like apc or xcache or eaccelerator and follow the link(s) in the blog (upside) here to apc or xcache or search (goog..) for eaccelerator object-cache if you choose/use eAcc for caching.. and mybe for session handling.. and a hint, try the wp-supercache plugin for wordpress and replace wp-cache with the supercache plugin.. seems to be faster on my little machine..

    have a nice day

    chris

  28. November 14, 2007 1:15 pm

    Wow, these are great news! Waiting for new WP 2.4 then :D

  29. November 14, 2007 4:22 pm

    I’ve moved up to 2.3, my templates made it through, but seem to be getting more spam suddenly, and WP has lost its desire to email me when a comment hits the moderation queue. Apart from that I like it, it is fast and reliable. I really would like additional text features, i don’t mind coding, but point and click is so much easier, lol. Love my WordPress! :^) gene

  30. November 14, 2007 7:37 pm

    Can you please, please, please find a replacement for those terrible SELECT UNIQUE queries on page display? That is by far one of the worst sorts of queries from a performance standpoint, and gets significantly worse as the blog gets older and contains more posts. I have a couple of blogs with 5000+ posts that turn to dogs on that single query.

    Think scaling. It should never get harder to get the first 10 posts out of a DB, regardless of how big the DB gets.

  31. November 14, 2007 11:13 pm

    we host on a clustered environment and turned gzip on from within wordpress. We also turned it on for all locally hosted js and css files. It made a huge difference in the time the page takes to load.

    Still no fix for slow loading remote servers…

  32. November 15, 2007 12:39 am

    hey, glad to see that you are working on 2.4! I love 2.3 so far and I can’t wait. When will the final version be published…?
    Any huge leaps ahead? Like tagging and automatic update notifications?

  33. Arnold permalink
    November 15, 2007 12:52 am

    To make WordPress leverage your memcached/apc/xcache/eaccelerator backend you need to use a plugin.

    This page has links to plugins for all four:
    http://neosmart.net/dl.php?id=12

    Just download the appropriate plugin and copy it as to your wp-content folder, and WordPress will magically speed up!

  34. November 15, 2007 7:55 am

    rawalex has right, of course, but i think this will come soon in future.. or?

  35. November 15, 2007 8:44 am

    i found the link to optimizing your PHP code and i think its worth the look over

    http://reinholdweber.com/?p=3

  36. November 15, 2007 10:42 am

    Oh this is just great! I’m so happy there will be some performance improvements in the next version. WordPress really needs some better caching. Thanks!

  37. November 18, 2007 8:57 am

    This is great news! Do you know how this will affect WPMU? It would be great if you worked together and came up with a new release simultaneously.

  38. December 11, 2007 8:44 pm

    Now I’m working with WP-Super-Cache, the speed seems to be very great :)
    I don’t know what exact will 2.4 bring us, at least, I hope the speed can be as fast as with WP-Super-Cache. However, that fast seems to be enough :)

  39. January 3, 2008 4:57 am

    I installed the wordpress 2.4 nightly build for testing and i am allowing people to test it too from my website. :D
    See this post for all info: http://diggitlive.com/2008/01/03/wordpress-24-has-different-administration-panel/

  40. January 30, 2008 5:47 am

    This is very good news.
    I am waiting for the new version.

  41. March 17, 2008 2:03 am

    The object-cache changed a little bit in version 2.5, doesn`t it? goes straight away to memory then.. or?

Trackbacks

  1. WordPress2.4提速 - 改善执行效率
  2. WordPress 2.4 apuesta por la velocidad de carga | Mangas Verdes
  3. d3bruts1d.com / WordPress 2.4 Note
  4. Wordpress 2.4 | Vomicae™
  5. Carrero
  6. WordPress 2.4 - faster, better, caching
  7. Wordpress 2.4 Performance Oriented
  8. Howto Design WordPress Blog To Survive The Digg | Web 2.0 How-To Spot-er
  9. Wordpress 2.4 no estará disponible para este año, wordpres 2.4 saldrá para el mes de enero de 2008 full mejoras wordpress 2.4 Descargar Directas Megaupload Rapidshare Comunidad Informatica Hispa-Digital.net
  10. Termin für WordPress 2.4 » wpBlog.de - WordPress Blogger
  11. » WordPress 2.4 Performance, Timeline
  12. » WordPress to_ping Query Optimization

Comments are closed.