• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable Execution Time

#1
[eluser]Petsoukos[/eluser]
The title is somewhat abstract but what really bugs me is that the execution time of the Home/Main page of my application varies from time to time.

When I do a standard login, meaning that the browser's caches is clean, no cookies, no sessions, the front-page executes in 0.04-0.06 seconds with about 45 db queries.
While manually deleting the ci_session cookie, refreshing takes about 0.1 seconds. This is when the autologin system kicks in.
After a while on idle, like 30+ minutes, refreshing the home pages takes about 1-2 seconds.

The autologin system is simple and standard.
1. The session expires.
2. On refresh the script grabs the cookies.
3. Process the autologin information.
4. Recreates the session cookie.
5. Stores the new autologin info into the database if necessary.
6. Renders the page.

This whole process is like 30 lines of code and does 1 db query. The database has just 10 records at the most since it is on development stage right now. I can't exactly find out the actual problem. Is it my 30 lines of script? The CI sessions? Database?
The development system/server is an Intel i7 920 with 6 Gigs of RAM and a standard sata HDD running Win7_64. Server software includes Apache 2.2.16, PHP 5.3.5, MySQL 5.1.44. Installed manually not with WAMP.

Did anyone else experienced something similar with CI?


Messages In This Thread
Variable Execution Time - by El Forum - 01-23-2011, 07:24 AM
Variable Execution Time - by El Forum - 01-23-2011, 08:17 AM
Variable Execution Time - by El Forum - 01-23-2011, 08:20 AM
Variable Execution Time - by El Forum - 01-23-2011, 08:54 AM
Variable Execution Time - by El Forum - 01-23-2011, 09:08 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.