最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - jQuery 1.3 vs 1.4 (Performance) - Stack Overflow

programmeradmin2浏览0评论

jQuery 1.4 released recently and the new website shows some performance charts where 1.4 is clearly better, but has someone already done an analysis of overall performance improvement of 1.4 vs 1.3? If not, how do I profile both on my sites/pages, are there any tools?

Can't wait to find out how fast is 1.4 pared to the previous version.

Edit: A blogger did some tests and found that its about 30% faster in FF but slower (pared to 1.3) in Safari. Hmm...

jQuery 1.4 released recently and the new website shows some performance charts where 1.4 is clearly better, but has someone already done an analysis of overall performance improvement of 1.4 vs 1.3? If not, how do I profile both on my sites/pages, are there any tools?

Can't wait to find out how fast is 1.4 pared to the previous version.

Edit: A blogger did some tests and found that its about 30% faster in FF but slower (pared to 1.3) in Safari. Hmm...

Share Improve this question edited Apr 9, 2010 at 5:35 Ivo Sabev 5,2401 gold badge28 silver badges38 bronze badges asked Jan 16, 2010 at 14:29 eozzyeozzy 68.9k109 gold badges285 silver badges447 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 4

Their diagrams only show one side of the story. I've recently been working on a script that involves iterating over thousands of input elements throughout the DOM tree and traversing their parent elements. According to Firebug, jQuery 1.4 runs roughly 30% slower that 1.3.2 on the exact js and DOM structure.

That's not to say that 1.4 isn't "faster" in general though, and this is only in one browser I've profiled in. I think that this time their efforts where more focused on speeding up areas that related to dynamic content creation rather than dealing with existing static elements.

Just thought I should also point that those charts list the number of function calls, not the execution time. Fewer function calls doesn't always translate to lower execution time. In my situation 1.4 executes about 20% fewer calls but runs about 30% slower.

This report says that jQuery have massive performance improvements in 1.4

http://www.stevesouders./blog/2010/01/15/jquery-14-performance/

Well.. After I updated jQuery for a project (with extensive DOM manipulation), I noticed an overall performance improvement. So I guess those reports are for real (or pretty close to the reality)

There is an official page about the performance improvements from the jQuery team, perhaps this is a good start: http://jquery14./day-01/jquery-14#backwards

发布评论

评论列表(0)

  1. 暂无评论