Welcome Guest, Not a member yet? Register   Sign In
Performence problem
#1

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
Reply
#2

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

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

(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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB