The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBulletin 4 & PHP 7 - drastic speed improvement!
Refer to my blog post in case you want to make vBulletin 4 work on PHP 7 as well:
https://blog.technidev.com/vbulletin...aking-it-work/ ----- http://www.zend.com/en/resources/php...ow-about-php-7 So PHP 7 has been released and it offers significant new features, including drastic speed changes (2 times faster according to Zend!). As expected, PHP 7 doesn't work with vBulletin 4. The main reason is because of "methods with the same name as their class will not be constructors in a future version of PHP" and a couple of other things. So for example, the class vB_Database may not have a method name called vB_Database that's used as a constructor. Since I have the latest vBulletin 4 version installed and I don't expect any new version of vBulletin 4 anytime soon, I'll probably give it a shot and modify my forum to see if I can make it work with PHP 7. I will definitely document the speed changes and let you guys know the results. Anyone else who may be interested in this? --------------- Added [DATE]1449314753[/DATE] at [TIME]1449314753[/TIME] --------------- After a couple of modifications, I managed to make vBulletin 4 work with PHP 7... and wow it loads so much faster. More than 2 times faster with PHP 7 and the OPCache module... wow. My mind is blown. Note that all the numbers below are based on the TTFB (Time To First Byte). Before the upgrade (PHP 5.4.45) Homepage 409.31 - 429.84 - 389.37 - 401.51 - 389.75 - 426.69 ~407.75ms average loading time Forum Category 518.51 - 491.49 - 447.64 - 491.94 - 433.52 - 543.93 ~487.84ms average loading time Thread 326.34 - 399.72 - 387.09 - 383.79 - 370.03 - 375.21 ~373.70ms average loading time ----- After the upgrade (PHP 7 WITHOUT OPCache) Homepage 289.79 - 291.41 - 289.11 - 253.45 - 285.06 - 259.98 ~278.13ms average loading time Forum Category 281.83 - 333.31 - 293.23 - 276.73 - 268.91 - 281.63 ~289.27ms average loading time Thread 221.73 - 344.83 - 257.84 - 250.72 - 250.04 - 220.07 ~257.53ms average loading time ----- After the upgrade (PHP 7 WITH OPCache) Homepage 225.63 - 200.26 - 219.48 - 181.72 - 199.93 - 177.55 ~200.76ms average loading time Forum Category 194.95 - 184.47 - 237.45 - 182.62 - 185.93 - 178.06 ~193.91ms average loading time Thread 207.83 - 156.41 - 146.43 - 143.13 - 155.13 - 142.61 ~158.59ms average loading time |
4 благодарности(ей) от: | ||
Alan_SP, Dragonsys, Manoel J?nior, z3r0 |
#2
|
||||
|
||||
Interesting. What did you have to do to make your site compatible?
|
#3
|
|||
|
|||
On top of my head, I had to make changes to the following files:
Another thing to keep in mind is that PHP 7 deprecates the mysql_* functions. In case you have any plugins or custom scripts installed which makes use of that then it will not work. |
2 благодарности(ей) от: | ||
RichieBoy67, Stratis |
#5
|
|||
|
|||
Quote:
I don't know how the other changes I've made affect earlier versions of PHP, so not sure if they want to bother "fixing" that since they officially don't even support PHP 7. |
#6
|
||||
|
||||
Quote:
There is a Jira for vB4 php7 support, but thats about as far as its got atm (other than I have some test sites running). |
2 благодарности(ей) от: | ||
Alan_SP, RichieBoy67 |
#7
|
||||
|
||||
Performance about average, nothing amazing here. Assuming the site in your signature is the subject site. My sites perform significantly better.
http://www.webpagetest.org/result/151208_83_1K5H/ |
#8
|
|||
|
|||
Quote:
I get an average TTFB of 20ms on that site. -- The location of the test server at webpagetest.org affects the final result by a lot, which is why you can't use that as a reliable tool to find out how fast a site is unless you test it from America, Asia and Europe and compare the results. Also if I compare my own results in Chrome's developer tools with the results of webpagetest.org, it doesn't match. If I clear my browser and DNS cache, the first load of https://technidev.com (located in Amsterdam) takes 1.50 seconds, yet webpagetest.org (Amsterdam server) states 5 seconds. |
#9
|
||||
|
||||
Quote:
Care to provide a link to this super fast php7 vB4? |
#10
|
||||
|
||||
I'm not trying to be a snark, I just see claims of millisecond load speeds and want to see that put to a real test. I've never seen millisecond load speeds.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|