WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Performance problems (4 posts)

  1. Carlos
    Member
    Posted 7 months ago #

    Hi!

    I updated polylang from 1.1.6 to 1.2.4, and I noticed a big performance hit. I tried the 1.3 beta, but the performance is very similar.

    I attach here two shots of the 'P3 - Plugin Performance Profiler' plugin stats:

    1.2.4: http://vox-technologies.com/tmp/shot_1_2_4.png
    1.3 beta: http://vox-technologies.com/tmp/shot_1_3.png

    Is there anything I can do to track down the problem?

    Thanks!

    http://wordpress.org/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 7 months ago #

    My own performance tests did not demonstrate any noticeable difference between Polylang 1.1.6 and 1.3 (I am aware that some performance was lost in some parts of the code, but other gains should compensate this). Note that these performance tests were done with almost no other plugins activated, so results may be different with different tests.

    I would not use your way to get the performance impact of a plugin. According to my experience, P3 is very unreliable. If you want to measure speed using WP plugins, I recommend to use debug bar + debug bar extender (which includes a profiler).

    To perform the comparison, you can choose a page and load it first with Polylang de-activated (look at the total execution time in debug->profiler and the total query time in debug->queries) and then remake the test with Polylang activated.

    In fact, each test should be done several times as you will notice a big dispersion in results. Especially, you will want to remove the tests in with extreme results (if WP ran a wp-cron for example).

    If you do your tests on a local Apache install, you can also use Apache Bench which can load the same page several times and will give you the avarage response time (here again, make the comparison with and without Polylang).

    For your comparison to be accurate, you have to take care that the language loaded is the same with and without Polylang. English pages do not load any .mo file while other languages will load the corresponding .mo files for WP, your themes and your plugins. This has a significant impact on the page loaded time.

  3. Carlos
    Member
    Posted 6 months ago #

    Sorry for the delay, and thank you for your rapid response.

    Thanks a lot for your advice for doing best performance tests. I thought P3 plugin was reliable, but I see it is not...

    My server CPU load has suddenly gone down ( ¿?¿? ) and I didn't touch Polylang plugin.

    Sorry for the noise =(

  4. Chouby
    Member
    Plugin Author

    Posted 6 months ago #

Reply

You must log in to post.

About this Plugin

About this Topic