Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Jquery versions Benchmarch Mehman2
(version: 0)
SImple benchmark of jQuery versions
Comparing performance of:
1.8.3 vs 1.9.1 vs 1.12.14 vs 2.2.4 vs 3.2.1
Created:
2 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<div id="idSelector"></div> <div class="classSelector"></div> <ul id="iteration"> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> </ul> <div id="cssGetter" style="color: black;"></div> <div id="cssSetter" style="color: black;"></div> <div id="find"> <span></span> <div> <strong></strong> </div> </div> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> <script> var $jq18 = $.noConflict(true); </script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"> </script> <script> var $jq19 = $.noConflict(true); </script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"> </script> <script> var $jq112 = $.noConflict(true); </script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"> </script> <script> var $jq224 = $.noConflict(true); </script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"> </script> <script> var $jq321 = $.noConflict(true); </script>
Script Preparation code:
function tests($) { // Filter Next $('#iteration li').filter(':first').next(); // Filter Prev $('#iteration li').filter(':last').prev(); // Non-existant Class $('.someClass'); // Non-existant ID $('#someID'); // Find $('#find').find('strong'); // Set color $('#cssSetter').css('color', 'red'); // Get color $('#cssGetter').css('color'); // Iteration $('#iteration li').each(function(i, e) { i++; }); // Class selector $('.classSelector'); // ID selector $('#idSelector'); }
Tests:
1.8.3
tests($jq18);
1.9.1
tests($jq18);
1.12.14
tests($jq112);
2.2.4
tests($jq224);
3.2.1
tests($jq321);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (5)
Previous results
Fork
Test case name
Result
1.8.3
1.9.1
1.12.14
2.2.4
3.2.1
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Browser/OS:
Chrome 123 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
1.8.3
28837.2 Ops/sec
1.9.1
30423.9 Ops/sec
1.12.14
29686.2 Ops/sec
2.2.4
29729.2 Ops/sec
3.2.1
29620.0 Ops/sec
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
**Benchmark Overview** The provided JSON represents a JavaScript benchmark created using MeasureThat.net, which tests the performance of different jQuery versions on various devices and browsers. **Test Cases** Each test case is defined by a `Benchmark Definition` section, which calls a specific function `tests()` with an argument `$jqX`, where X is the version number of the jQuery library. The function contains various DOM manipulation operations, such as filtering, finding, setting, and getting colors, as well as iterating over elements. For example, the first test case tests the performance of jQuery 1.8.3 using the `tests($jq18)` definition. This means that the `tests()` function is called with an argument `$jq18`, which is equivalent to the `$.noConflict(true)` method, returning a reference to the jQuery object. **Options Compared** The test cases compare different versions of jQuery: 1. **1.8.3**: An older version of jQuery, released in 2010. 2. **1.9.1**: A newer version of jQuery, released in 2014. 3. **1.12.14**: Another newer version of jQuery, released in 2016. 4. **2.2.4**: A more recent version of jQuery, released in 2022. 5. **3.2.1**: The latest version of jQuery at the time of benchmarking, released in 2022. **Pros and Cons** Each version of jQuery has its own strengths and weaknesses: * **Older versions (e.g., 1.8.3)**: + Pros: Smaller size, potentially faster execution. + Cons: Fewer features, less compatible with modern browsers. * **Newer versions (e.g., 2.2.4)**: + Pros: More features, better compatibility with modern browsers. + Cons: Larger size, potentially slower execution. * **Latest version (3.2.1)**: + Pros: Latest features, best compatibility with modern browsers. + Cons: Largest size, potentially slowest execution. **Other Considerations** When selecting a jQuery version for performance-critical code, consider the trade-offs between size, features, and compatibility. If speed is crucial, an older version might be suitable. However, if you need to support modern browsers and take advantage of new features, a newer version might be necessary. **Benchmark Results** The latest benchmark results show that: * **1.8.3**: The slowest executing version, with an average of 28837.228515625 executions per second. * **2.2.4**: Faster than 1.8.3, but slower than the newer versions, with an average of 30250.685234375 executions per second. * **3.2.1**: The fastest executing version, with an average of 30423.87109375 executions per second. Keep in mind that these results are specific to this benchmark and may vary depending on your use case and environment.
Related benchmarks:
Jquery versions Benchmarch
Jquery versions Benchmark 3.1.1 vs 3.4.1
Jquery versions Benchmarch (latest - 3.5.1)
Jquery versions Benchmarch 3.6
Comments
Confirm delete:
Do you really want to delete benchmark?