Since 2.6.1 Open Classifieds is fully compatible with PHP 7.
Long story short: Your site could be up to 4 times faster with PHP 7.
Today I am going to test Open Classifieds speed / performance using different PHP versions, so we can compare them.
I am testing on a very modest server:
- VPS server @ Vultr $5 / month
- 778 MB – 1 Core – 15 GB SSD
- Ubuntu 14.04 LEMP – With APCu
- Open Classifieds 2.6.1 with 540 ads.
Benchmark tool
With Serverpilot it’s very easy to change the PHP version of your application from the panel.
I like a lot Siege easy simple and nice report.
apt-get install siege
To launch it
siege -c 5 -b --time=30S http://test7.open-classifieds.com
Will create 5 concurrent jobs during 30 seconds.
Comparison
Results
Here you can find the entire result set from the tests performed.
I have removed these values as they return really similar values between versions or I found them irrelevant for now.
Availability: 100.00 % (always got this) Elapsed time: 29.25 secs (this may vary a little between 29.2 and 29.89) Successful transactions: 647 (100% duh!) Concurrency: 4.98 (max was 4.99) Failed transactions: 0 (always)
1 – Test Home Page
siege -c 5 -b --time=30S http://test7.open-classifieds.com
PHP 5.4.45
Transactions: 647 hits Data transferred: 3.69 MB Response time: 0.23 secs Transaction rate: 22.12 trans/sec Throughput: 0.13 MB/sec Longest transaction: 0.36 Shortest transaction: 0.12
PHP 5.5.30
Transactions: 1154 hits Data transferred: 6.59 MB Response time: 0.13 secs Transaction rate: 39.25 trans/sec Throughput: 0.22 MB/sec Longest transaction: 0.22 Shortest transaction: 0.09
PHP 5.6.16
Transactions: 1434 hits Data transferred: 8.18 MB Response time: 0.10 secs Transaction rate: 49.09 trans/sec Throughput: 0.28 MB/sec Longest transaction: 0.19 Shortest transaction: 0.06
PHP 7.0.1
Transactions: 2514 hits Data transferred: 14.36 MB Response time: 0.06 secs Transaction rate: 84.73 trans/sec Throughput: 0.48 MB/sec Longest transaction: 0.11 Shortest transaction: 0.03
2 – Test Search Result
siege -c 5 -b --time=30S http://test7.open-classifieds.com/house
PHP 5.4.45
Transactions: 550 hits Data transferred: 3.41 MB Response time: 0.27 secs Transaction rate: 18.40 trans/sec Throughput: 0.11 MB/sec Longest transaction: 0.43 Shortest transaction: 0.13
PHP 5.5.30
Transactions: 990 hits Data transferred: 6.15 MB Response time: 0.15 secs Transaction rate: 33.10 trans/sec Throughput: 0.21 MB/sec Longest transaction: 0.25 Shortest transaction: 0.06
PHP 5.6.16
Transactions: 1131 hits Availability: 100.00 % Data transferred: 7.02 MB Response time: 0.13 secs Transaction rate: 37.91 trans/sec Throughput: 0.24 MB/sec Longest transaction: 0.18 Shortest transaction: 0.10
PHP 7.0.1
Transactions: 1962 hits Data transferred: 12.18 MB Response time: 0.08 secs Transaction rate: 65.42 trans/sec Throughput: 0.41 MB/sec Longest transaction: 0.13 Shortest transaction: 0.05
3 – Test Single Ad
siege -c 5 -b --time=30S http://test7.open-classifieds.com/house/another-great-title.html
PHP 5.4.45
Transactions: 520 hits Data transferred: 3.60 MB Response time: 0.28 secs Transaction rate: 17.67 trans/sec Throughput: 0.12 MB/sec Longest transaction: 0.44 Shortest transaction: 0.10
PHP 5.5.30
Transactions: 1023 hits Data transferred: 7.08 MB Response time: 0.15 secs Transaction rate: 34.12 trans/sec Throughput: 0.24 MB/sec Longest transaction: 0.27 Shortest transaction: 0.12
PHP 5.6.16
Transactions: 1137 hits Data transferred: 7.88 MB Response time: 0.13 secs Transaction rate: 38.00 trans/sec Longest transaction: 0.23 Shortest transaction: 0.08
PHP 7.0.1
Transactions: 1819 hits Data transferred: 12.57 MB Response time: 0.08 secs Transaction rate: 61.89 trans/sec Throughput: 0.43 MB/sec Longest transaction: 0.20 Shortest transaction: 0.05
4 – Test HTML contact page
siege -c 5 -b --time=30S http://test7.open-classifieds.com/contact.html
PHP 5.4.45
Transactions: 703 hits Data transferred: 3.59 MB Response time: 0.21 secs Transaction rate: 24.22 trans/sec Throughput: 0.12 MB/sec Longest transaction: 0.37 Shortest transaction: 0.12
PHP 5.5.30
Transactions: 1501 hits Data transferred: 7.66 MB Response time: 0.10 secs Transaction rate: 50.30 trans/sec Throughput: 0.26 MB/sec Longest transaction: 0.17 Shortest transaction: 0.06
PHP 5.6.16
Transactions: 1717 hits Data transferred: 8.77 MB Response time: 0.09 secs Transaction rate: 58.16 trans/sec Throughput: 0.30 MB/sec Longest transaction: 0.16 Shortest transaction: 0.07
PHP 7.0.1
Transactions: 3081 hits Data transferred: 15.73 MB Response time: 0.05 secs Transaction rate: 104.16 trans/sec Throughput: 0.53 MB/sec Longest transaction: 0.12 Shortest transaction: 0.02
Conclusions
PHP7 was released just a few weeks ago. Open Classifieds is fully compatible and the results are amazing. They have already released a version after initial release with many bug fixes and we recommend you to start using it as soon as possible to enjoy the speed benefits; up to 4 times faster if you are upgrading from PHP 5.4. Your sites will be faster, use less memory and will be able to accept more customers!
I want to congratulate the PHP community once more for the amazing job they have done in this release.
If you want more you can compare the results with OC 1.8 here. now is much faster ;).
[jetpack_subscription_form]