jQuery Performance Comparison
Posted on 01/15/2009 @ 08:36PMThe announcement of the new jQuery release had me as excited as a geeky kid in a video game shop, so naturally I had to do some playing around. Noting the mention of performance improvements, I put together some tests to see just how must faster jQuery 1.3 was than 1.2.6.
Below I do some basic performance tests using Remy Sharp's time.js library. See the source code for the tests here.
The results are tremendous, particularly when testing the offset() method - a roughly 50% increase on average. append() is also far faster, and it's safe to assume this applies to the other DOM insertion methods.