3.0 significantly slower than previous versions? |
i have just upgrade to ci 3.0 for few days. (just copy old code to new ci 3.0 folder then re-config)
When running with same config, i found out ci 3.0 run slower than 2.2 versions In ver 2.2: code execute < 100ms ver 3.0: code execute > 1100ms All external files in 2 versions return same loading time (few percent difference) But time to execute code in ver 3.0 is ten times slower than 2.2. It's not worth upgrading, if website need 1 second more to execute Can anybody help me, please?
Test again
Just download 2 versions of codeigniter Install then run welcome page. Give same result.
Hi shank,
Version 3 is a big improvement and once optimized is not slow. Yesterday I eventually made the "Calendar Class" Google Mobile Friendly but the results are still to be cached. Time to load, etc, is shown on the last line. http://www.johns-jokes.com/joke-of-the-day I am very happy with the results (07-04-2015, 10:07 AM)ciadmin Wrote: Check http://forum.codeigniter.com/thread-1579...erformance Thank you, but still not work. (07-04-2015, 07:22 PM)John_Betong Wrote: Hi shank, I don't know how can you make it running in ~600ms - 800ms (its faster than my base code i dowloaded on codeigniter's site) but just see the base code welcome.php(default db, default config) In CI 2.2.0, Page load is faster than blink of an eye.
I noticed you are running the Dev version, try using 3.0 version.
The low value on my site is no doubt helped because the server uses a SSD. (07-05-2015, 06:25 PM)shank Wrote:(07-04-2015, 10:07 AM)ciadmin Wrote: Check http://forum.codeigniter.com/thread-1579...erformance Did you see this one? http://forum.codeigniter.com/thread-1579...#pid316310 (07-04-2015, 10:07 AM)ciadmin Wrote: Check http://forum.codeigniter.com/thread-1579...erformance (07-06-2015, 12:18 AM)Narf Wrote:(07-05-2015, 06:25 PM)shank Wrote:(07-04-2015, 10:07 AM)ciadmin Wrote: Check http://forum.codeigniter.com/thread-1579...erformance Yes, i saw it. But in system/libraries/Session/drivers/Session_database_driver.php line 94 CI will auto aborting if "pconnect" config set TRUE Disable that lines and set pconnect TRUE will increase performance to ~30 milisecond loading. (Why did they let us config while treat it like an error? LOL) By the way, with CI 2.2.0 i can set pconnect TRUE, FALSE and whatever it is, page loading time always < 10 milisecond (my favorite framework, fast like hell ) (07-06-2015, 01:42 AM)shank Wrote:(07-06-2015, 12:18 AM)Narf Wrote: Did you see this one? http://forum.codeigniter.com/thread-1579...#pid316310 Yeah, well ... if you want to set pconnect to TRUE, don't use database sessions. It's all made that way for a reason.
I had problems with performances as well on my app built with CI3 and at the end i found that all the issues were related to database sessions, in fact switching from db to file session everything is now super fast.
Note: the problem was noticeable only online when hundreds of users were connected and using the software at the same time. |
Welcome Guest, Not a member yet? Register Sign In |