Archive for September, 2009

+Tube bookmarklet

0Dade`5th Sep 2009English, , , ,

I wrote another bookmarklet that gets rid of Flash player when you’re on a youtube page. I’m sure it works on Safari and Firefox, don’t know about IE (and I don’t want to know).

To install just drag the following link on your bookmarks bar: +Tube

If you are a windows user you may need codecs to decode youtube mp4 video format. Try googling for “k-lite codec pack download”.

Safari, Firefox, Chromium vs battery life

1Dade`4th Sep 2009Italian

I wrote a dead simple bash script that starts up Firefox, Safari and Chromium and samples cumulative cpu time every 5 seconds. All browsers are set up without any extension to open “www.google.it”.

OS: Mac OSX Snow Leopard
Hardware: Macbook Pro 13″

Here is the output

cpu time after 10 seconds (startup)
safari 03.25 vs firefox 01.59 vs chromium 1.09
cpu time every 5 seconds (minus startup)
SAFARI | FIREFOX | CHROMIUM
.29 ; .34; .05
.35 ; .53; .13
.40 ; .66; .20
.44 ; .82; .27
.50 ; 1.03; .35
.55 ; 1.15; .42
.59 ; 1.30; .49
.63 ; 1.43; .56
.68 ; 1.58; .64
.72 ; 1.75; .71
.77 ; 1.90; .78
.81 ; 2.03; .86
.86 ; 2.16; .93
.90 ; 2.28; 1.01
.95 ; 2.41; 1.08
.99 ; 2.54; 1.15
1.03 ; 2.67; 1.23
1.08 ; 2.80; 1.30
1.12 ; 3.17; 1.38
1.26 ; 3.37; 1.45
1.30 ; 3.50; 1.52
1.35 ; 3.63; 1.60
1.40 ; 3.76; 1.67

Untitled

Do you see where this is going ? The same thing happens on every website, when it comes to idling and being gentle on cpu Safari always wins. The difference becomes N times bigger if you consider keeping N tabs opened. This is why I’m a Safari user (next time someone asks, ctrl-c/ctrl-v).