Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Speed Test

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,28968
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Speed Test
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Speed Test - 12/13/2005 5:38:28 AM   
  blake.arnold


Posts: 31
Score: 0
Joined: 12/1/2005
Status: offline
So this is where I am at.  I have wrote a script largely with the help of this forum and now I am at the hardest part of my script which I know goes well beyond my expertise.  I need to test the speed of the internet connection on the computer the script is run on.  I know that what I need to do is download a file and it can be from any site.  I also need to set off a timer that ends when download completes.  Then I need to calculat the rate of download. And last display results of speed test.

< Message edited by blake.arnold -- 12/13/2005 6:27:15 AM >


_____________________________

"And what is a weed? A plant whose virtues have not yet been discovered."
 
 
Post #: 1
 
 RE: Speed Test - 12/13/2005 5:51:22 AM   
  blake.arnold


Posts: 31
Score: 0
Joined: 12/1/2005
Status: offline
This is the script to download an item.

      

< Message edited by blake.arnold -- 12/13/2005 6:17:01 AM >


_____________________________

"And what is a weed? A plant whose virtues have not yet been discovered."

(in reply to blake.arnold)
 
 
Post #: 2
 
 RE: Speed Test - 12/13/2005 6:16:40 AM   
  blake.arnold


Posts: 31
Score: 0
Joined: 12/1/2005
Status: offline
I also belive that this is the timer funciton that I need to use.

      

So how can I join these two togeter?

< Message edited by blake.arnold -- 12/13/2005 6:18:27 AM >


_____________________________

"And what is a weed? A plant whose virtues have not yet been discovered."

(in reply to blake.arnold)
 
 
Post #: 3
 
 RE: Speed Test - 12/13/2005 6:27:35 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
before download:
StartTime = Timer

after download:
EndTime = Timer

output difference:
TimeIt = (EndTime - StartTime)/'link speed here
wscript.echo TimeIt

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to blake.arnold)
 
 
Post #: 4
 
 RE: Speed Test - 12/13/2005 6:54:03 AM   
  blake.arnold


Posts: 31
Score: 0
Joined: 12/1/2005
Status: offline
The link speed will be different on every machine so how do I get around that?

_____________________________

"And what is a weed? A plant whose virtues have not yet been discovered."

(in reply to kirrilian)
 
 
Post #: 5
 
 RE: Speed Test - 12/13/2005 6:59:53 AM   
  Country73


Posts: 732
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
Are you wanting to record this information somewhere, or just display it?

(in reply to blake.arnold)
 
 
Post #: 6
 
 RE: Speed Test - 12/13/2005 8:49:48 AM   
  TNO


Posts: 1240
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: online
There is no way of determining a user's bandwidth unless you calculate how long it takes for them to download a file (i.e. start time and end time)... and that result has to be returned to the server, so it's impossible to do it using a client-side script. And it still won't be accurate due to the number of hops the user has to take to connect with your server, and any latency along the way (not to mention any bandwidth hogging programs the user may have installed). You can only get an average. You might want to check out some sites and see how they do it... however their results are not accurate either since your latency is totally dependent upon the connections from YOUR computer to the REMOTE HOST.

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to Country73)
 
 
Post #: 7
 
 RE: Speed Test - 12/13/2005 11:13:55 PM   
  blake.arnold


Posts: 31
Score: 0
Joined: 12/1/2005
Status: offline
Ok all, I appreciate your posts and it seems that I have come up with a script.  TNO you are right, but I just need the download speed that they can get.  So without further adue.

      

Let me know if you see anything that needs to be changed.

Oh, one more thing.  Does anyone know of a good program that I can use to add a GUI and compile it into an executible?

Thanks and Best Regards

< Message edited by blake.arnold -- 12/13/2005 11:15:00 PM >


_____________________________

"And what is a weed? A plant whose virtues have not yet been discovered."

(in reply to TNO)
 
 
Post #: 8
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Speed Test Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts