Welcome Guest, Not a member yet? Register   Sign In
Why CI4 is slower than CI3

I'm just testing it on the same machine and base on the default welcome page
CI3 Result: Page rendered in 0.0245 seconds. CodeIgniter Version 3.1.9
CI4 Result: Page rendered in 0.1203 seconds. Environment: production
There are those who tell lies with meaning behind them and those meaning less lies!

Okay It's getting a real good progress.
From CI4 Alpha2: Page rendered in 0.0201 seconds. Environment: production Smile Smile
There are those who tell lies with meaning behind them and those meaning less lies!

In your php.ini turn on and setup the php opcache and watch what happens.

From what I found on the web this is where you turn the zend opcache extension on. you need to add this line to php.ini
Change the path to your php_opcache.dll location if not using XAMPP.

; Language Options ;

; Enable the PHP scripting language engine under Apache.
; http://php.net/engine
engine = On

;;;zend_extension = php_opcache.dll
zend_extension = C:\xampp\php\ext\php_opcache.dll

Configuring the Zend opcache:

; Determines if Zend OPCache is enabled

; Determines if Zend OPCache is enabled for the CLI version of PHP

; The OPcache shared memory storage size.

; The amount of memory for interned strings in Mbytes.

; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 1000000 are allowed.

; When disabled, you must reset the OPcache manually or restart the
; webserver for changes to the filesystem to take effect.

; How often (in seconds) to check file timestamps for changes to the shared
; memory storage allocation. ("1" means validate once per second, but only
; once per request. "0" means always validate)


These are the best settings that I have found you need to test the settings for yourself.

Here is a good article on it.

Best Zend OpCache Settings/Tuning/Config

Good luck.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB