473,324 Members | 2,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Measure Performance

Hi! I'd like to measure the performance of my web page. I'd like to
set a timer on the page to start when a user clicks on a link, or
submit... anything where the browser requests a page from the server.
The idea would be to set a hidden form variable to the current time
when an action occurs, then when the page from the server is returned,
I can match the new time to the old time and get the difference in
order to measure the performance. Is there some sort of javascript
funtion that will allow me to do this (that is able to tell when the
browser is requesting a page from the server... whether this is on a
submit, hyperlink, etc)???

Thanks in advance!

Jul 23 '05 #1
2 1978

Well, you want to match the server response time in relation to the
client.
Have js set 2 cookies in a hidden iframe in the page, <iframe
style="display: none">,

load hidden iframe with 1 Form taking 2 fields
have the ACTION point to this same file so it loads the page again with
the Form

1st load, check if cookie is there if not, set cookie1, which will have
the user's time, bu using a Date() object and checking its properties

when done, give it timing and have the Form sent with the 1st field
already populated from cookie1, or the Start_time.

once the Form page reloads from the ACTION, have it check for cookie1 and
if set, have it set cookie2, also with a Date() object properties info.
When done, populate the 2 fields of the form and have it send with both
values.

cookie1 with Start_time and cookie2 with End_time, cookie1 picks up
roughly the time from the time the Form sends(browser request), and
cookie2 picks up the time the request came(server response arrival). And
yes, you need the cookies set on the client, js, to get the user's time,
not the server's.
Danny


On Mon, 11 Jul 2005 11:35:19 -0700, Bond <ni**************@gmail.com>
wrote:

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Jul 23 '05 #2
The problem is how do I know when the browser is making a request to
the server? My page is using JSPs if that helps. I am not having an
onclick event for EVERY hyperlink, submit, etc. There must be some
javascript function that I can overwrite that will allow me to
something when the browser requests something from the server.

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gary | last post by:
Hi, How does one set up a timer so I can measure the time to do an event? Something like this I guess the format would be, start timer...
13
by: Gaijinco | last post by:
Every now and then and found two ways to resolve a problem. I try to find a way to decide which one is best (at least speed-wise) but I don't know how do I test how long those it take a program to...
6
by: cranium.2003 | last post by:
hello, If i wrote a C function then how to know that its costlier in terms of processing time,execution,compilation. I have written 2 functions for one problem but dont understand which one is...
2
by: Jeff S | last post by:
I'm looking for guidance (tutorials, backgrounders, tips, or otherwise) on measuring the performance of ASP.NET applications. I'm specifically interested in acquiring the capability of generating...
13
by: Sharon | last post by:
I need to test a performance of some code of mine. I tried using the Environment.TickCount but its resolution is too low (from the MSDN remarks: The resolution of the TickCount property cannot be...
5
by: mjan | last post by:
Hello, could you please advice on how to measure replication performance in Oracle, DB2 & MS SQL Server RDBMS installed in Windows servers ? I've got two servers with databases installed and...
0
by: Gus007 | last post by:
Hi all, I was wondering how I could measure performance in my C++ program.I need to do this analysis for my university final project. Perfromance For performance I believe I could use: ...
1
by: frank.preiss | last post by:
Hi, I'm looking for help monitoring the communication of a client/server application. We are using the .Net default serialization/ deserialization with the binary formatter using .Net 2.0. I...
1
by: kartouss | last post by:
Hello i am new to this forum...can you help me solve this problem.. I have a function encrypt() which encrypts data from a file in 16 bytes till end of file which in turn calls other 4...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.