473,473 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C#, Windows XP and Vista, .NET Framework 3.5 :: How fast is an HTTP GET?

15 New Member
Hello everybody.

Specifications
Operating System: Windows XP and Vista
Language: C#
.NET Version: 3.5

Problem
I am constantly transferring data using HTTP, I need to access a website in HTTP and retrieve data in HTTP. So for example:

PSUEDOCODE EXAMPLE - operation 1
----------------------------------------------------------------------------------------------
Expand|Select|Wrap|Line Numbers
  1. HttpWebRequest  request  = (HttpWebRequest)WebRequest.Create("http://www.google.com");
  2.         // execute the request
  3. HttpWebResponse response = (HttpWebResponse)request.GetResponse();
----------------------------------------------------------------------------------------------

How long will this operation (operation 1) take? Note that, this code won't work, this is only psuedocode to show an example. The problem is, I need this code to run very fast. Now, I understand this is not a practical question if the user is using Dial-Up, so lets assume the user has DSL and downloads files at 100 KB/s average. How long would Operation 1 take if i do it every second?

Second Question

What is the fastest, and I really mean FASTEST way of access a webpage?
Sep 11 '08 #1
2 1591
Curtis Rutland
3,256 Recognized Expert Specialist
It should work as fast as a user can download the content. There's no set speed for this kind of thing. It should take as long as it does for a browser does to get the response, minus the time it takes to render. I mean, it does the same thing that a browser does...it sends an http request, and receives an http response.

Limiting factors include your bandwith and the server's bandwith. I guess if you are running on a very slow computer, the code in between can take some time to process, but it depends on what it is.

As far as I know that way is as fast as any.

I suppose the best thing to do would be to set up a bench test. Write a simple program that loops through a predetermined amount of times and makes requests and gets responses. Get the time before and after. Find the difference. Add it to a running total, and average after the loop. Run the bench on multiple computers against multiple sites.


ALSO
Please use [code] tags when posting. I've fixed it for you this time.
Mod.
Sep 11 '08 #2
secutos
15 New Member
Thank you VERY much. you must be busy, answering a lot of questions. keep up the good work.
Sep 11 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: typingcat | last post by:
I'd heard and believed that Microsoft .NET Framework 2.0 would be shipped with Windows Vista(Longhorn). Not as an 'additional' component, but, you know, already installed so that developers don't...
6
by: wassa | last post by:
Wouldn't the fact that you need to deploy your .NET application with a giant 23mb framework rule it out of being used for serious commercial applications, except maybe those apps that will be huge...
113
by: dan | last post by:
For writing a Windows desktop application, how much harder is it to use the Windows C API than C#/.NET, assuming the coding is done in an editor? What specific aspects were more difficult? I'm...
3
by: illegal.prime | last post by:
Hi all, I have a service that needs to start a regular windows application. I'm running the service as ServiceAccount.LocalSystem. But, when it starts the process (using Process.Start) the GUI...
7
by: JL | last post by:
Hello, I've a strange problem with Windows Vista, running an ASP page on local machine (http://localhost/test.asp), the page does not give me any error but the asp code is not executed (simple...
9
by: Morys | last post by:
I am trying to install .NET and when I start the installation I get a message stating that I need Front Page Extensions. I am using windows vista business version. Where can I get these...
0
by: Erwin Moller | last post by:
Hi, I am one of those questionable people that started with Vista (Home Premium). Not because I think it is a ready/steady OS, but partly out of curiousity, and partly because I needed to work...
4
by: Arek | last post by:
Hi, How to detect Windows version and .NET version? I mean I want to know if user is using Windows 2000, XP, Vista and which Service Pack and version (XP Home, XP Pro, Vista Home Basic, Vista...
4
by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post by:
I am creating an application for windows mobile using Visual C# windows. I am using visual studio 2008 and I have windows Microsoft Vista on my computer. I also downloaded the professional and...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.