PHP 5.6 Vs PHP 7 – Performance Benchmarks With Laravel 5

Submitted by azazqadir - 3 months ago

Laravel is rapidly becoming a popular choice for PHP projects. The framework has established its reputation after the release of version 5.x. In the same vein, PHP recently received a major update in the form of PHP 7.1.x. It is an established fact that Laravel has a solid codebase and provides optimized performance for all lightweight and enterprise level applications. However no statistics about Laravel 5 benchmarks and its performance with PHP 5.6 and PHP 7 are widely available. Laravel on PHP 5.6 During the test, the blitz tool generated 22,375 hits successfully in 300 sec. In addition, the Laravel app received 427.91 MB of data. The average hit rate of 75/second translated to about 6,444,000 hits per day. Laravel on PHP7 During the test, the blitz tool generated 29,214 hits successfully in 300 seconds. The Laravel app received 420.31 MB of data. The average hit rate of 97/sec translates to about 8,413,632 per day. Here is the summarized picture of the test: Source: https://www.cloudways.com/blog/laravel-5-benchmarks-php-5-6-and-7/

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;

class Products extends Model
{
protected $table = 'products';
protected $connection = 'connection-name';
       protected timestamps = false;
}

Ads cover the costs of maintaining Laravel-tricks

comments powered by Disqus

Ads cover the costs of maintaining Laravel-tricks