📜 ⬆️ ⬇️

Comparison of speed of popular js libraries

There was a task to choose a JS library for a new project. I already worked with Prototype and jQuery , in different projects and chose mostly from them. Both libraries have their strengths and weaknesses. Holivar on this topic can be developed indefinitely, but I am primarily interested in speed.

Thanks to the lusever user application , I ran a performance test. The test also involved the well-known Ext JS library. The sampling speed of 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, the eighth version of IE fell out at the first attempt to pass the test. I did not dare to run the test in all my favorite IE6. I understand that in the test there are not the freshest libraries, however, on all graphs (with the exception of IE7), it is clearly seen that jQuery goes ahead in performance. Draw conclusions gentlemen.

')

Source: https://habr.com/ru/post/75622/


All Articles