vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   % PHP vs % MySQL in Micro Stats (https://vborg.vbsupport.ru/showthread.php?t=39720)

JoshFink 06-11-2002 12:43 PM

% PHP vs % MySQL in Micro Stats
 
Ok.. I like the hack. Great hack, but I'm curious to see how my numbers stack up and what if anything would be wrong. The numbers seem strange to me (but then again), I don't know what they mean fully.. Guess I should start with that.

vbPortal Front Page :
0.4795480 seconds (87.41% PHP - 12.59% MySQL)

Forums Front Page :
0.1290790 seconds (77.19% PHP - 22.81% MySQL)

Is it better to have higher PHP % or MySQL %? Does it matter?

Thanks

Josh

pattox2k1 06-12-2002 06:26 AM

i believe that it is better to have a higher PHP one as the script will then need to run more queries if there is more MySQL ones and it will slow the loading of the page ;)

JoshFink 06-12-2002 12:25 PM

Yeah, this is something I'm trying to figure out as well, I've had as high as 94% PHP and 6% MySQL, but no definitive answer yet.

Your explanation does make sense though

Thanks

Josh

08-09-2002 05:37 AM

The percent is calculated by the time spent to execute the script - time to do queries ?

Sparkz 08-09-2002 06:06 AM

What really matters is the total time the page takes to execute...

08-09-2002 06:11 AM

Here's how I use it for www.computergames.ro

$time = round (($time_end - $time_start), 4);

$time_q = round($db->get_query_time(), 4); // time MySQL

$time_p = $time - $time_q; // time PHP

$percentage_q = round($time_q * (100/$time), 2);
$percentage_p = round($time_p * (100/$time), 2);

TECK 08-09-2002 09:40 PM

Quote:

Originally posted by VeNoM23
Here's how I use it for www.computergames.ro
i'm romanian to... :)


All times are GMT. The time now is 04:25 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01477 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete