Home > Uncategorized > Performance test a url (vb.net)

Performance test a url (vb.net)

Sometimes, you might want to see the effect of load on the responsiveness on a server. In my case, I wanted to see how video processing slowed down the web server. So, I wrote a console app in vb.net that called a url every second, and recorded the response time. This, I then outputted to a CSV, and imported to google sheets for further processing.

Sub Main(ByVal sArgs() As String)
Dim wc As New WebClient()
Dim strUrl As String = sArgs(0)
Dim dtStart As DateTime
Dim dtEnd As DateTime
dtStart = DateTime.Now
dtEnd = DateTime.Now
Console.WriteLine(dtEnd & “,” & (dtEnd – dtStart).Milliseconds)

End Sub

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: