There was a problem, to select the JS library for a new project. I already worked with
Prototype and
JQuery , in different projects and chose mainly from them. Both libraries have their strengths and weaknesses. Holivar on this subject can be developed indefinitely, but I am primarily interested in speed.
Due to
the application user
lusever , I spent a performance test. The well-known
Ext JS library also participated in the test . The speed of sampling DOM elements by selectors is tested, you can go to the site and try to pass the test yourself, by the way, there are very interesting examples of selectors that I did not know about before.
Speed Comparison (Safari 531.21 Mac)
ext 2.2 | jQuery 1.3.2 | Prototype 1.6.0.3 |
---|
78 | 25 | 33 |
Speed Comparison (Firefox 3.5 Mac)
ext 2.2 | jQuery 1.3.2 | Prototype 1.6.0.3 |
---|
136 | 57 | 97 |
Speed Comparison (Explorer 8 Windows)
ext 2.2 | jQuery 1.3.2 | Prototype 1.6.0.3 |
---|
185 | 108 | 1542 |
ext 2.2 | jQuery 1.3.2 | Prototype 1.6.0.3 |
---|
171 | 328 | 1791 |
Conclusion
As usual, Microsoft is happy that the eighth version of IE fell out completely at the first attempt to pass the test. I did not dare to run the test in my beloved IE6. I understand that the test is not the latest library, however, on all graphs (except for IE7), it is clearly seen that JQuery comes forward in performance. Draw conclusions gentlemen.