ionik Posted May 6, 2008 Share Posted May 6, 2008 Ok, Well now that i have finished a great deal of a script im developing I was wondering what most of you consider to long for a page to load and sql queries right now the script i have will run about 20-35 queries to the database when a page will load and parse 6 templates using my template engine each template file is about 10kb in size and the page will load in on average of .091 seconds through the admin main page it conducts 75 queries to the database parses 13 template files and does it in an average of .241 seconds now I am wondering if this is reasonable? Quote Link to comment https://forums.phpfreaks.com/topic/104420-loading-time/ Share on other sites More sharing options...
ucffool Posted May 14, 2008 Share Posted May 14, 2008 being admin will be accessed a lot less than the other pages, its okay that it is higher. for main pages, I would see what you could cache to reduce the queries and allow for a faster experience as multiple users start accessing the site at the same time. You really should never say, "Is this a good threshold that the user can tolerate?" Instead, you should always be saying, "What can I do to make this faster for everyone?" Quote Link to comment https://forums.phpfreaks.com/topic/104420-loading-time/#findComment-540917 Share on other sites More sharing options...
Xeoncross Posted May 21, 2008 Share Posted May 21, 2008 the script i have will run about 20-35 queries to the database when a page will load and parse 6 templates using my template engine each template file is about 10kb in size and the page will load in on average of .091 seconds the admin main page it conducts 75 queries to the database parses 13 template files and does it in an average of .241 seconds now I am wondering if this is reasonable? Yes, that sounds right. You should also build in a caching system because there is no reason to keep processing the same template files (like "header.xxx"). Set it to cache the outcome of the system for 1+ minutes before they re-template them. Also, I posted something on what it takes to run wordpress and my system CodeXplorer takes about .05 seconds 1.5MB RAM on the index page. Quote Link to comment https://forums.phpfreaks.com/topic/104420-loading-time/#findComment-546883 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.