open

Archive for March, 2009

Web Server benchmarks with PERL

Tuesday, March 31st, 2009

Since the last update, i’ve been working on PERL to test web server benchmark performance. So far, i’m able to download and print a page, using the below mechanism:

#!/usr/bin/perl

require HTTP::Request;
require LWP::UserAgent;

my $url = ‘http://192.168.50.201/index.html’;
my $request = HTTP::Request->new(GET => $url);
my $ua = LWP::UserAgent->new;
my $response = $ua->request($request);
$response->is_success or die $response->status_line;
my $content = $response->content;
print $content;

I’m now looking into developing this code by using the below mechanism from CPAN.org and building it into the code:

use WWW::Mechanize::Timed;
my $ua = WWW::Mechanize::Timed->new();
$ua->get($url);
print “Total time: ” . $ua->client_total_time . “\n”;
print “Elapsed time: ” . $ua->client_elapsed_time . “\n”;

This will allow me to test the time taken to download a web page from the web server, e.g. IIS/Apache Tomcat which is useful to my virtualization thesis.

Home and Man flu

Monday, March 23rd, 2009

Not much interesting happened the last week! I have been ploughing on with dissertation work and i am now up to 7500 words, half way there! Aside from that, i went up to the Lake District with my family and did a 3000ft climb which was knackering – even my dog was tired by the end of it and shes never tired!

Was so cold at the top i ended up getting man flu yet again which is just gurrrrreat. Heading home again for the weekend coming, then im off to Essex with Fran on our big adventure – no Salford weekends for a good few weeks – lucky me!

Busy Busy Busy

Monday, March 16th, 2009

2 weeks down and im even busier than ever!

I began driving lessons at the end of February and i am cracking on with them making great progress- watch out Lewis Hamilton! Other than that, its been pretty much nose to the grindstone when it comes to academia!

I’m hammering away with my dissertation, along with assignments and other general stuff really! Spent the 8th/9th filming a mock Dragons den program with Joe and Matt which was hilarious, it was for our “entrepeneurial management” tutorials at university – not cos we like to mess around :)

Other than that, ive been chilling with Fran this weekend. Watched Marley and Me (Great film!) and then went out to Footage with the lads + Emma (martins emma!) and had a good time so cant complain really about anything! Was amused at Frans amusement at my iphone, namely the random ringtones – e.g. giggity giggity gig-i-ty!

Quiet Month

Monday, March 2nd, 2009

February came and went without fuss – Valentines day was spent quietly as Fran didnt want to do much due to being skint and im not financially that great either! We went to the indian with my family on the 15th for my dads birthday which was fun – even if my brothers curry was 500% hotter than it should have been! :)

The rest of the month has been spent hammering out university work – averaging 57% for my first semester (minus Dissertation), im hoping to get it to 59% for a 2:1. The dissertation is going at 500mph at the moment – with 5000 words done so far, im looking forward to getting the majority done this month!

The weekend just gone was spent in Birmingham with Fran which was nice – got up there on the Friday and had a nice curry and a few beers at hers while chilling out. I watched the rugby on Saturday before heading out shopping with Fran on a prolonged date hehe. Finally got some new jeans and a couple of DVD’s, before we had a Nandos for tea followed by massive Thortons ice creams on our walk home which was nice. Watched a film Saturday night before falling asleep to a few cans of Becks!

Sunday i didnt do much except doss around with Fran and generally make her room untidy – which she loved me for, honestly, even if she is now addicted to puzzles. Also, congrats to her for getting a job at Jaguar Land Rover, shes over the moon and it makes life a lot easier for me :)

Sam