3.0 significantly slower than previous versions? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: 3.0 significantly slower than previous versions? (/showthread.php?tid=62341) |
3.0 significantly slower than previous versions? - shank - 07-03-2015 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? RE: 3.0 significantly slower than previous versions? - shank - 07-04-2015 Test again Just download 2 versions of codeigniter Install then run welcome page. Give same result. RE: 3.0 significantly slower than previous versions? - ciadmin - 07-04-2015 Check http://forum.codeigniter.com/thread-1579.html?highlight=performance RE: 3.0 significantly slower than previous versions? - John_Betong - 07-04-2015 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 RE: 3.0 significantly slower than previous versions? - shank - 07-05-2015 (07-04-2015, 10:07 AM)ciadmin Wrote: Check http://forum.codeigniter.com/thread-1579.html?highlight=performance 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. RE: 3.0 significantly slower than previous versions? - John_Betong - 07-05-2015 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. RE: 3.0 significantly slower than previous versions? - Narf - 07-06-2015 (07-05-2015, 06:25 PM)shank Wrote:(07-04-2015, 10:07 AM)ciadmin Wrote: Check http://forum.codeigniter.com/thread-1579.html?highlight=performance Did you see this one? http://forum.codeigniter.com/thread-1579-post-316310.html#pid316310 RE: 3.0 significantly slower than previous versions? - shank - 07-06-2015 (07-04-2015, 10:07 AM)ciadmin Wrote: Check http://forum.codeigniter.com/thread-1579.html?highlight=performance (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.html?highlight=performance 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 ) RE: 3.0 significantly slower than previous versions? - Narf - 07-06-2015 (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-post-316310.html#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. RE: 3.0 significantly slower than previous versions? - valerio.neryo - 03-17-2016 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. |