r/programming • • Dec 20 '10

A Christmas Tree in 1k of Javascript

http://www.romancortes.com/blog/how-i-did-the-1kb-christmas-tree/
1.1k Upvotes

221 comments sorted by

View all comments

42

u/ImTheGuyWithTheGun Dec 20 '10 edited Dec 20 '10

Amazing how much smoother this runs in Chrome compared to Firefox. And IE8 - forget about it.

EDIT: Safari 5 seems even worse than Firefox. My system is a core-i5 w/ 6GB on Win7 - should be plenty of horsepower.

21

u/rickmatt Dec 20 '10

I loaded it in Firefox 3.6.13 (on a 64 bit quad core desktop with 6G RAM running Windows 7 Ultimate) and my CPU usage went from 1% to 25%. Closed it and usage dropped to 1% again. Loaded it in Chrome and there was no appreciable increase in usage. WTF?

2

u/wefarrell Dec 21 '10

For js, chrome is several orders of magnitude faster than ff.

The ff beta is just as fast as chrome though.

4

u/abadidea Dec 21 '10

iirc the Mozilla Javascript team has said they're on track for catching up to Chrome. Chrome's JS has done to FF what Firefox did to the IE interface team several years ago: embarrass them into trying harder.