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

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

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!
Reply
#3

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.

Code:
;;;;;;;;;;;;;;;;;;;;
; 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:

Code:
; Determines if Zend OPCache is enabled
opcache.enable=1

; Determines if Zend OPCache is enabled for the CLI version of PHP
opcache.enable_cli=1

; The OPcache shared memory storage size.
opcache.memory_consumption=128

; The amount of memory for interned strings in Mbytes.
opcache.interned_strings_buffer=16

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

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

; 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)
opcache.revalidate_freq=60

opcache.fast_shutdown=1


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




Theme © iAndrew 2016 - Forum software by © MyBB