Performance

Performance Is Green

Posted: August 31, 2010 In / 2 Comments

49226298_da8ecc7ad6_m.jpgAre you writing and using environmentally friendly software? Have you ever thought of the impact on the environment for the software you've written? Working in front of a computer it can be easy to overlook the impact on the environment due to what were creating. It's not like drinking a beverage out of a styrofoam cup (they don't break down). But, there is an impact. As Internet usage grows in leaps and bounds we need to start taking a closer look at that impact and doing something about it.

Why Performance Is Green

Why did Facebook start using Hip-Hop? According to their blog,

With HipHop we've reduced the CPU usage on our Web servers on average by about fifty percent, depending on the page. Less CPU means fewer servers, which means less overhead.

When we have less servers we use less power, we need less space in buildings, less servers need to be built for our tasks and our overall footprint is smaller.

Think about it like this. We buy energy efficient appliances, we talk about turning lights off when we aren't using them, we look at energy efficient cars, and we think about being environmentally conscious. So, why not extend this to what powers our websites. Read more »

Performance Comparison: document.createElement('img') vs. new Image()

Posted: December 3, 2009 In

When I was working on a script to preload images with JavaScript one of the decisions I had to make was whether to use document.createElement('img') or an image object to preload the image into. The recommended w3c method is to use document.createElement('img') as it is a consistent way to create elements. This is the method I used. But, I was wondering which performed better. So, I ran some tests and here is what I learned. Read more »