Wednesday, 18 January 2017

Video Benchmarking Laravel Lumen & Slim in AWS cloud

Benchmarking Laravel Lumen & Slim in AWS cloud
Benchmarking Laravel Lumen & Slim in AWS cloud
Title : Benchmarking Laravel Lumen & Slim in AWS cloud
Duration : 10:22
Channel : Nadir Boussoukaia
Label : PHP, Laravel, Laravel Lumen, Slim
Benchmarking Laravel Lumen & Slim in AWS cloud
Benchmarking Laravel Lumen & Slim in AWS cloud
Benchmarking Laravel Lumen & Slim in AWS cloud
Benchmarking Laravel Lumen & Slim in AWS cloud

Benchmarks Lumen vs Slim (PHP frameworks) This is answser to the reddit thread "is it me, or Laravel Lumen is actually pure sham? webspicy.blogspot.fr" https://www.reddit.com/r/PHP/comments/3dz8hi/is_it_me_or_laravel_lumen_is_actually_pure_sham/ and to http://taylorotwell.com/how-lumen-is-benchmarked/ The test machine: AWS t1.micro 0.613 EBS only Image: Linux/Unix, Debian 8.1 | 64-bit Amazon Machine Image (AMI) | Updated: 6/24/15 I am following the protocol (partly) by pmjones https://github.com/pmjones/php-framework-benchmarks Debian GNU/Linux 8.1 (jessie) PHP 5.6.9-0+deb8u1 (cli) (built: Jun 5 2015 11:03:27) 7:30 for the setup from scratch here it fail because git ask you to create a personal token on their website. You follow the link, you copy/paste it & the composer install goes to the end. LUMEN (without optimisitation) Requests per second: 295.18 [#/sec] (mean) Requests per second: 294.84 [#/sec] (mean) Requests per second: 291.27 [#/sec] (mean) Requests per second: 296.27 [#/sec] (mean) Requests per second: 302.16 [#/sec] (mean) LUMEN (with optimisitation) Yes, composer seems actually slowing it down ! Requests per second: 268.00 [#/sec] (mean) Requests per second: 263.43 [#/sec] (mean) Requests per second: 265.45 [#/sec] (mean) this is the selected empirical average value don't question it, the test is wrong (because the client is in the same box) ;-) Slim 3 Requests per second: 494.07 [#/sec] (mean) Requests per second: 494.91 [#/sec] (mean) Requests per second: 497.98 [#/sec] (mean) So Slim 3 seems 60% to 70% faster So seen a lot of variation during the tests just tu cross check, let's do lumen again LARAVEL (veeeery long) Requests per second: 43.29 [#/sec] (mean) Requests per second: 45.47 [#/sec] (mean) (I am not patient enough to do several tests) is there any difference if we "optimize"?? Requests per second: 44.75 [#/sec] (mean) Requests per second: 42.22 [#/sec] (mean) 3 frameworks (badly) compared: LUMEN Requests per second: 242.29 [#/sec] (mean) SLIM3 Requests per second: 485.59 [#/sec] (mean) LARAVEL Requests per second: 43.29 [#/sec] (mean) 1 order of magnitude slim vs laravel x2 slim3 vs lumen (slim 2 is faster than slim 3) that's the conclusion of this part.

No comments:

Post a Comment