PHP 7 and WBB 4.1

  • Sorry if i pull up this thread after so long time, but i was searching for a reason why my local installed forum (wbb5 on xampp 7.0.13 - PHP7 -, Windows 7 64bit i5-4670 @3,4GHz) is so slow at loading the pages for the first time.


    i found this thread here and tried the benchmark test and got this result:



    it looks very good besides the "test_stringmanipulation"... what can i do about it? I am actually installing a VM debian8 to try if linux works better as webserver on the same machine, just as a VM.


    btw.: i got the same result local on the machine and over my lan from a other pc, with different browsers... total time with every browser is ~4.4sec


    greetings,

    nordx

    Edited once, last by nordx ().

  • what about the second view of a page ?

    You should know that the wbb is caching many files so it took quite a while to create a solid cache, same counts for mysql requests as the mysql server needs a little bit of time and requests to optimize everything.

    You could enable the benchmark and debug mode to look if its sql limited or php limited.

    Also a slow hard drive with file system cache enabled will slow down your installation, but i don't think this would be a problem at your system ;)

  • i installed debain8 (VM on same machine) with apache2 and php7.0, first test:


    very good now... didnt installed the forum yet, have to install mysql and phpmyadmin,... will try it later and post it here than.


    got a ssd in my system (where i installed the files), so i bet this is not my problem.



    btw.: a second view of the same page i opened loads it instant! no problem...

    but the first load of a page is nothing compared to my webserver where i am using a productiv-forum.

    the stats on this webserver are slower, still better experience with the forum:





    ....

    You could enable the benchmark and debug mode to look if its sql limited or php limited.

    ....

    what do you mean with "enable benchmark and debug mode"? where can i find it? is there a option in the wbb5 itself?

  • Yes, its an option within the acp, enable it and you get details about every page load.

    But it also slow down your page a little, so only enable it temporary ;)

    Again, the first view is always slow, you need a few page loads until the cac he is ready, all templates etc needs to get parsed, data needs to be loaded from the database into the chace etc.

    So if the forum speeds up after the first load everything is fine ;)

  • ok,... so i finished installing my VM and installed again a wbb5 and upgraded to last version.


    after that i deleted the cache in acp and opened dashboard from it, result:

    Execution time: 0.548s (99,54% PHP, 0,46% SQL) | SQL queries: 52 | Memory-Usage: 36,35 MB


    than i tried the same in my also new installed wbb5, also upgraded, just already one test post in the forum, and also cleared the cache, result:

    Execution time: 4.5196s (99,45% PHP, 0,55% SQL) | SQL queries: 50 | Memory-Usage: 30,12 MB


    i also tried the "uniform server" beside xampp... no big difference in time.


    so for me, its a problem with windows 7 or the applications for it. i will stay with my debian8-vm, works much better - like i know it from normal internetsites.

    • Official Post

    nordx The string performance seems to be falling behind on Windows builds, I'm seeing similar numbers on my developer machine (Windows 10 Pro x64), the string part is always sticking out by an order of magnitude. Yet, the numbers are still okay and well within the boundaries of what I would consider to be acceptable.


    The numbers in post #24 aren't really useful, as you're pretty much comparing apples to oranges, namely PHP 5.6 and PHP 7.0. There have been major improvements made to PHP7 and in some cases the performance gains are really huge, rendering straight comparisons useless. You should always try to match the exact same PHP version to get real numbers before you draw any conclusions.


    Also you should always enable opcache with newer PHP versions, but keep in mind that you need to refresh the page a few times before getting useful numbers, as the opcode cache is gradually building up itself.

    Alexander Ebert
    Senior Developer WoltLab® GmbH

  • The numbers in post #24 aren't really useful, as you're pretty much comparing apples to oranges, namely PHP 5.6 and PHP 7.0. There have been major improvements made to PHP7 and in some cases the performance gains are really huge, rendering straight comparisons useless. You should always try to match the exact same PHP version to get real numbers before you draw any conclusions

    so thats exactly the point... even with the older version i get better results (i mean using the forum in practical way... not the benchmark-numbers themself!) on the linux-vserver :-).

    you are right, when comparing something its better to use same versions.


    but anyway: at this point it seems that windows is not good as a server. linux works way better out of the box.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!