Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Jquery versions Benchmarch (latest - 3.5.1)
(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.5.1
Created:
5 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/1.8.3/jquery.min.js"> </script> <script> var $jq18 = $.noConflict(true); </script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"> </script> <script> var $jq19 = $.noConflict(true); </script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"> </script> <script> var $jq112 = $.noConflict(true); </script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"> </script> <script> var $jq224 = $.noConflict(true); </script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/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.5.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.5.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/122.0.0.0 Safari/537.36 Edg/122.0.0.0
Browser/OS:
Chrome 122 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
1.8.3
62943.4 Ops/sec
1.9.1
63228.0 Ops/sec
1.12.14
88364.1 Ops/sec
2.2.4
90047.0 Ops/sec
3.5.1
82436.7 Ops/sec
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
I'll provide an in-depth explanation of the benchmark, its options, pros and cons, library usage, special JavaScript features, and alternatives. **Benchmark Overview** MeasureThat.net is a website that allows users to create and run JavaScript microbenchmarks. The provided JSON represents a benchmark definition for comparing different versions of jQuery (a popular JavaScript library). The benchmark consists of a script preparation code and an HTML preparation code, which are used to set up the test environment. **Script Preparation Code** The script preparation code is responsible for setting up the test environment by performing various operations on the DOM. It includes: * Filtering elements using `:first` and `:last` * Selecting non-existent classes and IDs * Finding elements within other elements * Setting and getting CSS styles * Iterating over elements using `each` **HTML Preparation Code** The HTML preparation code sets up the test environment by creating a simple DOM structure, including: * An unordered list (`ul`) with multiple list items (`li`) * Two divs with classes and IDs for setting up CSS selectors * A div with an ID for setting up another CSS selector **Benchmark Test Cases** The benchmark consists of five individual test cases, each testing a different version of jQuery: 1. `tests($jq18)`: Tests jQuery 1.8.3 2. `tests($jq19)`: Tests jQuery 1.9.1 3. `tests($jq112)`: Tests jQuery 1.12.14 4. `tests($jq224)`: Tests jQuery 2.2.4 5. `tests($jq321)`: Tests jQuery 3.5.1 Each test case uses the `$` notation to reference a specific version of jQuery, which is loaded using the `$.noConflict()` method. **Options Compared** The benchmark compares five different versions of jQuery: * jQuery 1.8.3 * jQuery 1.9.1 * jQuery 1.12.14 * jQuery 2.2.4 * jQuery 3.5.1 Each version has its own strengths and weaknesses, which are not explicitly stated in the benchmark. However, it's likely that the author of the benchmark is trying to evaluate the performance differences between these versions. **Pros and Cons** Comparing different versions of jQuery can be useful for identifying performance improvements or regressions. However, there are some potential drawbacks: * The benchmark may not accurately represent real-world usage scenarios. * Some features or optimizations in newer versions of jQuery may not be relevant to older browsers or environments. * The benchmark may favor or penalize certain versions unfairly. **Library Usage** The benchmark uses the `$` notation to reference a specific version of jQuery, which is loaded using the `$.noConflict()` method. This suggests that the author is trying to isolate the performance differences between different versions of jQuery while minimizing the impact of other library dependencies. **Special JavaScript Features** There are no special JavaScript features explicitly mentioned in the benchmark. However, some versions of jQuery may include newer features or optimizations that could affect performance. **Alternatives** If you're looking for alternative benchmarks or testing frameworks, consider the following options: * WebPageTest: A popular tool for measuring website performance and browser-specific metrics. * BrowserStack: A cloud-based platform for testing web applications across multiple browsers and versions. * TestCafe: An open-source testing framework for JavaScript applications. These alternatives can provide more comprehensive testing capabilities than a simple benchmark like the one provided.
Related benchmarks:
Jquery versions Benchmarch
Jquery versions Benchmarch 2
Jquery versions Benchmark 3.1.1 vs 3.4.1
Jquery versions Benchmarch 3.6
Comments
Confirm delete:
Do you really want to delete benchmark?