CodeIgniter Forums
Performence problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Performence problem (/showthread.php?tid=74923)



Performence problem - Michal_PB1 - 11-25-2019

Hi,

I work on my project on local using `php spark` and today I publish my project on server and here is a problem. Because time to load site on the server is several times longer than local. Can anyone know where is a problem?

Starter controller for CI4:

Local:


Code:
Bootstrap - 1.02 ms
Routing - 0.20 ms
Controller - 0.09 ms
Controller Constructor - 0.04 ms
View: welcome_message.php - 0.02 ms


PHP version:

Code:
PHP 7.2.24-0ubuntu0.18.04.1 (cli) (built: Oct 28 2019 12:07:07) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.24-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies


Server:

Code:
Bootstrap - 204.82 ms
Routing - 92.71 ms
Controller - 1.87 ms
Controller Constructor - 1.26 ms
View: welcome_message.php - 0.54 ms


PHP version:

Code:
PHP 7.2.24 (cli) (built: Oct 25 2019 15:21:24) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.
    with Zend OPcache v7.2.24, Copyright (c) 1999-2018, by Zend Technologies



RE: Performence problem - InsiteFX - 11-26-2019

IT's most likely the IonCube which is code protection.

It takes time to decode all of your code so that it can run.

Try loading you app without IonCube then do a benchmark test.


RE: Performence problem - dave friend - 11-26-2019

Ping the website a few times too to see what the network latency is.


RE: Performence problem - Michal_PB1 - 11-27-2019

(11-26-2019, 03:27 PM)InsiteFX Wrote: IT's most likely the IonCube which is code protection.

It takes time to decode all of your code so that it can run.

Try loading you app without IonCube then do a benchmark test.

Thank you very much Smile You are my hero Cool IonCube disabled and the performance increase is amazing => 5600ms vs 250ms Rolleyes