The Great Browser Test 2008 (part 1)

Posted by beakersoft | Posted in Applications | Posted on 01-04-2008

0

Header
Over the last few days I have read quite a few posts about Safari for Windows coming out of beta. Lots of people seem to be having a go at Apple for the way they are distributing it via the Apple software update (the CEO of Mozilla for one, see here), but i’m more bothered about how the different browsers perform up against each other.

So I decided to put them to the test. I installed Internet Explorer (7), Firefox (2.0.0.13), Safari (3.1) and Opera (9.26) onto a Windows Vista SP1 PC (dell 755, 1gig ram 2ghz proc) and came up with a few of simple tests:

  • How the perform at the ACID3 test
  • How much memory they take up when first loaded
  • How long it takes to render the main page of a bunch of site (microsoft.com, apple.com etc.)
  • Of those sites, did they all look and act as they should

The object of these tests is’nt to find the best browser, it is just to see how they stack up against each other. Everyone’s taste is always different and the ‘best’ performing browser might not be for everyone.

Up First… The ACID3 Test

The ACID3 (http://acid3.acidtests.org) test tries to render a page to test different web standards of the browser. The previous ACID test was more about CSS compliance, where as this once tests for more things that would effect the rendering of web2 kind of site. The ACID2 test also did not have a score to rate the compliance, so its hard to express the results. You can run the ACID2 test here

Browser Acid3 Test Result
Internet Explorer 12/100
Firefox 52/100
Safari 75/100
Opera 36/100 (then crashed)
 

So, as you can see from the results, the most compliant browser of the lot was Safari, but i suppose that’s to be expected as it is the most (feature wise) recently updated browser.

Next… Memory Usage on Start

Next up, how much memory does each browser use on start up. For this test Firefox is running as a new install so there are no extensions in there to slow it down.

Browser Memory On Startup
Internet Explorer 6176 k
Firefox 13312 k
Safari 14876 k
Opera 35744 k
 

Here Internet Explorer is the clear winner, but i think that is to be expected as it is tried into other windows components (like explorer.exe) so much. Opera was the last performer in this test, but if you start to load Firefox with some extensions over time that will probably end up the worst memory hog. In the new version of Firefox they have done a lot of work to plug all of the memory leaks.

Last… Page Loading times

Next up we will time how long it takes to render pages in each of the browsers. I will clear the cashe and history of each browser before going onto the site. To time the load times of the pages I will use the stopwatch service at numion.com You can just enter a url and it will re-direct you to it, and time how long it takes the page to load. Hopefully these are a good cross section of sites.

  microsoft apple digg facebook bbc lep
Internet Explorer 7.64 9.27 6.39 4.48 1.44 3.22
Firefox 14.83 2.66 11.43 5.12 2.25 4.25
Safari 2.52 2.23 4.2 5.96 0.94 1.61
Opera 3.26 2.41 5.99 4.98 1.94 3.27
 

Note: the pages tested where the front page of the site, apart from facebook, in that case it was the home page you see after logging in

Again, the results show that Safari comes top again. I must admit I haven’t used it in the past, but the page load times are very impressive. On the bottom end of the scale Firefox seemed to perform the worst of the bunch, that came as quite a surprise to me.

So, what have we learnt?

Personally, quite a bit. I use Firefox day in day out, and I didn’t release the other browsers were that much faster than it, especially Safari. I was quite unimpressed with Opera, it looked and felt to me like Internet Explorer with a more cluttered interface. That said I still prefer Firefox over the others. Its easy to use, and its plugin system means it will always have the functions I want (even if some do come with a performance penalty)

I can understand why Apple are making a dig deal out of safari though, its speed alone makes it worth while, and it also has a couple of features (such as snapback) that the others don’t possess. That said I don’t know how it stable it is, but some things I have read online say that this version is fine.

 

Webslices in Wordpress

Posted by beakersoft | Posted in Programming | Posted on 24-03-2008

13

Wordpress and Webslices header

One of the new features in the beta of Internet Explorer 8 is something called Webslices. These work in a similar way to RSS feeds, but allow you to subscribe to a section of a web page, as opposed to just a feed. The section of the page you subscribe to is a div with a class name of hsclice.

If a page contains webslice’s that can be subscribed to, a little purple icon shows in the IE tool bar, along with any rss feed options for the page. If you click on the webslice option a new link appears in the favorites bar, when you click on this you get the contents of the div. If the content of the div is updated, the item in the favorites bar shimmers and goes bold to inform you of the update.

Webslice

So, I have written a small php script that can be used on a Wordpress blog to subscribe to the 7 last posts as a webslice. At the moment all I have is a script, but if people are interested I can turn it into a Wordpress plugin. You can download all the parts as a .zip file at the end of the post, but here is what it contains

  • readme.txt – This file contains the bit of HTML code you need to insert in your index.php file (or where ever you want the webslice subscription option to show) and more detailed install information.
  • webslice.php – The actual file that contains a div with the last 7 posts
  • webslice.css – Style sheet for the php file

When you have downloaded the files, change the css to suite you, insert the div code into your page, upload to the server and away you go.

More Info on the script

When I first looked at adding a webslice to my Wordpress blog, I thought i would just place the hslice div around the existing previous posts section in my side bar. I went away from that idea though as I wanted the ability to format it differently, maybe add a graphic to the bottom etc so i went with an external file.

To make the page flag as having a webslice, but re-direct it to another page for the actual div, I used the class=”feedurl” option in the div. This just tells IE to look in a different place for the actual content. You can tell it to look at a page or an rss feed. The div containing all this info is hidden so it doesn’t interfere with any of the existing front page content.

The script it’s self is very straight forward. It just looks in your Wordpress DB for the last 7 (you can easily change this) posts , and puts them into n unordered list on the page, the formating is controlled by an external style sheet.

Please note this might not be 100% reliable. IE 8 is still in beta so its possible (but unlikely) the way it handles Webslices could change. I have also only tested this on one machine running the new IE, so it might not always work right. If you have problems get in contact and ill try and iron them out.

As I mentioned before if there is enough interest I might turn it into a plug-in

Edit: Since upgrading to the release version of Internet Explorer 8, any web slices I had suddenly stopped working. All I kept getting was ‘page cannot be displayed’ error in the space where the slice was. After much searching and head scratching I finally found the solution at http://support.microsoft.com/kb/969213

It turns out that Google Gears was stopping them from working, just disable the add on in IE and they start to work fine again

Download The Zip Archive

Download the script: wordpress_webslice.zip

Accessing the Spiceworks Database – Part 1

Posted by beakersoft | Posted in spiceworks | Posted on 11-03-2008

4

Header

When I first started to use Spiceworks, one of my main complaints was that you couldn’t access the data outside of the Spiceworks desktop interface. Well, turns out I was wrong.

I first had my eye’s opened from this thread on the Spiceworks forums. It informed me that it uses a SQLite database to store all its information. So, I asumed getting at the data would be easy. As with most things I was mistaken.

Internet Explorer 8

Posted by beakersoft | Posted in Applications | Posted on 09-03-2008

0

Last week the boys over at Microsoft launched the first beta of Internet Explorer 8, you can download it now from http://www.microsoft.com/windows/products/winfamily/ie/ie8/readiness/Install.htm (be warned its a beta so could go pear shaped yada yada ya)

Reading through the docs, looks like the main new thing with this version is improved compliance. Finally, it might be possible to create a website that looks (and behaviors)  the same in all the Major browsers, without having to put in a lot of extra code and css. Only question I have is why the hell has it taken them so long (and were they scared by the impending release of Firefox 3?)

However, not to jump on the Microsoft bashing bandwagon to much, there are a couple of cool new features in there that might prove to be useful. You can read more about them at Readiness Toolkit page, but they are:

  •  Activities – Now when you click on the IE8 page menu, you get a list of activities you can perform on that page. These include thing like sharing it on Facebook, Digging the page, Translating the page, blogging the page etc. There is a framework for this that allows you to create your own ‘activities’, so you are not limited to what they want.
  • Webslices – This for me is the most interesting new function. You can add some code to your websites so that the user can subscribe directly to content on your page. Its kind of like a better version of RSS integration with the browser. You can do things like subscribe to Friend status’s on Facebook, when you hit the webslice (it lives in the favorites bar) a drop down appears with pics of your recently updated friends, there status and the time of the status. I am going to try and code a simple one for this website hopfully this week, and ill post my findings up.

Something else that occurs to me is that are they trying to take on traditional RSS feeds with there webslice function, and how long will it be until there is a Firefox extension that will emulate it?