Comparison of the speed of popular JS libraries

    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)


    image
    ext 2.2jQuery 1.3.2Prototype 1.6.0.3
    782533

    Speed ​​Comparison (Firefox 3.5 Mac)


    image
    ext 2.2jQuery 1.3.2Prototype 1.6.0.3
    1365797

    Speed ​​Comparison (Explorer 8 Windows)


    image
    ext 2.2jQuery 1.3.2Prototype 1.6.0.3
    1851081542

    Speed ​​Comparison (Explorer 7 Windows)


    image
    ext 2.2jQuery 1.3.2Prototype 1.6.0.3
    1713281791

    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.

    Also popular now: