Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Page load time question www.fish-minnesota.com
Old 07-14-2005, 09:04 PM Page load time question www.fish-minnesota.com
zig
zig's Avatar
Skilled Talker

Posts: 82
Trades: 0
I am trying to make a home-built page loading tester.

I grab the milliseconds at the very top of the page:
<? $startTime = microtime(); ?>



And check it in the footer...
<? $endTime = microtime(); ?>


then subtract it all & x .001 to get seconds...
<? echo "Loading time: " . (($endTime - $startTime) * 0.001) . " seconds"; ?>

The numbers I get are always soo low, even after dumping my cache, does this not take into account my images etc?

http://fish-minnesota.com/ (look in the footer for the time)
zig is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-14-2005, 09:21 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
No, it won't take images into account - all it does is time how long the script itself runs for. The script can output an <img> tag in a fraction of a second, the browser receives this and then submits an entirely separate http request for the image.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 07-14-2005, 09:23 PM
zig
zig's Avatar
Skilled Talker

Posts: 82
Trades: 0
haha...man, that sucks... any way you know of that this is possible?

thanks!
zig is offline
Reply With Quote
View Public Profile
 
Old 07-14-2005, 09:37 PM
zig
zig's Avatar
Skilled Talker

Posts: 82
Trades: 0
I removed the time... but I'm still open for ideas.
zig is offline
Reply With Quote
View Public Profile
 
Old 07-15-2005, 08:10 AM
onlyplace4's Avatar
Extreme Talker

Posts: 159
Location: Skegness, Lincolnshire, England
Trades: 0
Not sure if I'm right here as it's not something I have played with, but I have a feeling the JavaScript onLoad event handler positioned within the <body> tag triggers an event when the entire page has loaded, though whether or not this includes the images I don't know. All I can suggest is having a play with it.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
onlyplace4 is offline
Reply With Quote
View Public Profile Visit onlyplace4's homepage!
 
Reply     « Reply to Page load time question www.fish-minnesota.com
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.99258 seconds with 12 queries