Author is QA Engineer & Project Co-ordinator at Tune.pk.
He's fond of reading Russian literature and tweets at @hammzanaveed
Upgrading the Systems
You might have noticed that recently Tune.pk had a makeover; In our technical terminology we can also say that Tune.pk refreshed its UI (User Interface) to give it users a more refined look and feel. Beneath these cosmetical changes; Tune.pk has also recently been upgraded to PHP 7.0 from PHP 5.6. This update will up the performance and processing of the application in a number of ways. To make this shift from PHP 5.6 to PHP 7.0, currently maintained driver of MongoDB was updated from previously used Mongo extension (Compatible with PHP 5.6)
MongoDB extension is used for new applications as well as to augment or replace existing relational infrastructure. The deprecated Mongo extension was no longer maintained or supported by its developer community.
On performance front; PHP 7.0 is ahead of its predecessor as expected. We consolidated this fact by running a number of tests using aggregation of stats on various data sets. The results of these benchmarking tests are shared below;
Time in Seconds for PHP 5.6
Time in Seconds for PHP 7.0
Get 100k entries from MySQL and aggregate the views of all 100k videos
Get 100k entries from MySQL and use built-in function strtoupper
Get 100K entries from MySQL. Use built-in function strtoupper and str_replace. Repeat the process 5 times
Get 100K entries and Use built-in functions Utf8_decode preg_match_all