Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
jpk test
(version: 0)
Comparing performance of:
$jq1124 vs $jq224 vs $jq331 vs $jq1124 2 vs $jq224 2 vs $jq331 2
Created:
6 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'></script> <script> var $jq1124 = $.noConflict(true); </script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script> var $jq224 = $.noConflict(true); </script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> var $jq331 = $.noConflict(true); </script> <div> <div id="menu"> </div> </div>
Script Preparation code:
function tests($) { let dialogs = []; let result = [{"active":true,"author":"USER.PRIVATE_DATASOURCE.un:testmarkt","authorName":"Test Markt","cookieText":"2at20200409111722","createdAt":{"date":29,"day":2,"hours":14,"minutes":17,"month":9,"nanos":774000000,"seconds":18,"time":1572355038774,"timezoneOffset":-60,"year":119},"createdBy":"USER.PRIVATE_DATASOURCE.un:testmarkt","createdByName":"Test Markt","displayedFrom":{"date":31,"day":4,"hours":2,"minutes":16,"month":9,"nanos":0,"seconds":0,"time":1572484560000,"timezoneOffset":-60,"year":119},"displayedTo":{"date":30,"day":1,"hours":23,"minutes":16,"month":10,"nanos":0,"seconds":0,"time":1606774560000,"timezoneOffset":-60,"year":120},"id":2,"lastChangeAt":{"date":9,"day":4,"hours":11,"minutes":17,"month":3,"nanos":824000000,"seconds":22,"time":1586423842824,"timezoneOffset":-120,"year":120},"message":"Sehr geehrte Einzelhändler,<br />\nSehr geerhte Marktleiterinnen und Marktleiter<br />\n<br />\nWann:<br />\n02.07.2020 zwischen 18:30 Uhr und 02:00 Uhr<br />\n<br />\nSystem(e):<br />\nLUNAR-EH Portal, EDEKA Markt Online MDE Bestellvorgänge, Lotus Notes und Thin Client Rechner<br />\n<br />\nDarüber hinaus kann es zwischenzeitlich zu Schwierigkeiten bei der Erreichbarkeit der Support-Hotline -329 kommen. Nutzen Sie daher im absoluten Notfall die 04321 - 985 158.<br />\n<br />\nMit freundlichen Grüßen<br />\n<br />\nIT Support","nowDisplayedToInSeconds":-1140574,"roles":"GRUP.PRIVATE_DATASOURCE.un:r:leser,Rolle Leser","showPopup":false,"title":"Pflegbare Wartungsarbeiten Pflegbare Wartungsarbeiten Pflegbare Wartungsarbeiten","updatedAt":{"date":9,"day":4,"hours":11,"minutes":17,"month":3,"nanos":824000000,"seconds":22,"time":1586423842824,"timezoneOffset":-120,"year":120},"updatedBy":"USER.PRIVATE_DATASOURCE.un:testmarkt","updatedByName":"Test Markt","createdAtStr":"29.10.2019 14:17","displayedFromStr":"31.10.2019 02:16","displayedToStr":"30.11.2020 23:16","updatedAtStr":"09.04.2020","updatedLastAtStr":"09.04.2020 - 11:17"},{"active":true,"author":"USER.PRIVATE_DATASOURCE.un:testmarkt","authorName":"Test Markt","cookieText":"4at20200409111732","createdAt":{"date":30,"day":3,"hours":14,"minutes":43,"month":9,"nanos":704000000,"seconds":46,"time":1572443026704,"timezoneOffset":-60,"year":119},"createdBy":"USER.PRIVATE_DATASOURCE.un:testmarkt","createdByName":"Test Markt","displayedFrom":{"date":6,"day":6,"hours":13,"minutes":43,"month":3,"nanos":0,"seconds":0,"time":1554550980000,"timezoneOffset":-120,"year":119},"displayedTo":{"date":15,"day":3,"hours":13,"minutes":43,"month":3,"nanos":0,"seconds":0,"time":1586950980000,"timezoneOffset":-120,"year":120},"id":4,"lastChangeAt":{"date":9,"day":4,"hours":11,"minutes":17,"month":3,"nanos":605000000,"seconds":32,"time":1586423852605,"timezoneOffset":-120,"year":120},"message":"<strong>Text der 2. Nachricht<\/strong><br />\nLorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt.","nowDisplayedToInSeconds":510682,"roles":"GRUP.PRIVATE_DATASOURCE.un:r:leser,Rolle Leser","showPopup":false,"title":"2. Wartungsnachricht","updatedAt":{"date":9,"day":4,"hours":11,"minutes":17,"month":3,"nanos":605000000,"seconds":32,"time":1586423852605,"timezoneOffset":-120,"year":120},"updatedBy":"USER.PRIVATE_DATASOURCE.un:testmarkt","updatedByName":"Test Markt","createdAtStr":"30.10.2019 14:43","displayedFromStr":"06.04.2019 13:43","displayedToStr":"15.04.2020 13:43","updatedAtStr":"09.04.2020"}]; result.forEach(function(messageObj){ let impMessdialog = $('<div class=\"modal-dialog modal-lg\" role=\"document\"><div class=\"modal-content\"><div class=\"modal-header d-block\"> <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"> <span aria-hidden=\"true\">×<\/span> <\/button><p class=\"card-text text-muted d-flex flex-wrap\"> <small class=\"ImpMessAuthor\"><\/small> <small class=\"px-1\">•<\/small> <small class=\"mr-auto pr-5 ImpMessPublDate\"><\/small> <small>IT Support<\/small><\/p><h3 class=\"card-title mb-0 text-body\"> <span class=\"badge badge-danger rounded py-2 px-1 mr-2\"> <\/span> <span class=\"ImpMessTitle\"><\/span><\/h3><\/div><div class=\"modal-body ImpMessText\"><\/div><\/div><\/div>'); let author = messageObj.authorName; let messDate = messageObj.updatedAtStr; let title = messageObj.title; let messBody = messageObj.message; impMessdialog.find('.ImpMessAuthor').html(author); impMessdialog.find('.ImpMessPublDate').html(messDate); impMessdialog.find('.ImpMessTitle').html(title); impMessdialog.find('.ImpMessText').html(messBody); dialogs.push(impMessdialog); }); $('#menu').append(dialogs); } function tests2($) { let dialogs = []; let result = [{"active":true,"author":"USER.PRIVATE_DATASOURCE.un:testmarkt","authorName":"Test Markt","cookieText":"2at20200409111722","createdAt":{"date":29,"day":2,"hours":14,"minutes":17,"month":9,"nanos":774000000,"seconds":18,"time":1572355038774,"timezoneOffset":-60,"year":119},"createdBy":"USER.PRIVATE_DATASOURCE.un:testmarkt","createdByName":"Test Markt","displayedFrom":{"date":31,"day":4,"hours":2,"minutes":16,"month":9,"nanos":0,"seconds":0,"time":1572484560000,"timezoneOffset":-60,"year":119},"displayedTo":{"date":30,"day":1,"hours":23,"minutes":16,"month":10,"nanos":0,"seconds":0,"time":1606774560000,"timezoneOffset":-60,"year":120},"id":2,"lastChangeAt":{"date":9,"day":4,"hours":11,"minutes":17,"month":3,"nanos":824000000,"seconds":22,"time":1586423842824,"timezoneOffset":-120,"year":120},"message":"Sehr geehrte Einzelhändler,<br />\nSehr geerhte Marktleiterinnen und Marktleiter<br />\n<br />\nWann:<br />\n02.07.2020 zwischen 18:30 Uhr und 02:00 Uhr<br />\n<br />\nSystem(e):<br />\nLUNAR-EH Portal, EDEKA Markt Online MDE Bestellvorgänge, Lotus Notes und Thin Client Rechner<br />\n<br />\nDarüber hinaus kann es zwischenzeitlich zu Schwierigkeiten bei der Erreichbarkeit der Support-Hotline -329 kommen. Nutzen Sie daher im absoluten Notfall die 04321 - 985 158.<br />\n<br />\nMit freundlichen Grüßen<br />\n<br />\nIT Support","nowDisplayedToInSeconds":-1140574,"roles":"GRUP.PRIVATE_DATASOURCE.un:r:leser,Rolle Leser","showPopup":false,"title":"Pflegbare Wartungsarbeiten Pflegbare Wartungsarbeiten Pflegbare Wartungsarbeiten","updatedAt":{"date":9,"day":4,"hours":11,"minutes":17,"month":3,"nanos":824000000,"seconds":22,"time":1586423842824,"timezoneOffset":-120,"year":120},"updatedBy":"USER.PRIVATE_DATASOURCE.un:testmarkt","updatedByName":"Test Markt","createdAtStr":"29.10.2019 14:17","displayedFromStr":"31.10.2019 02:16","displayedToStr":"30.11.2020 23:16","updatedAtStr":"09.04.2020","updatedLastAtStr":"09.04.2020 - 11:17"},{"active":true,"author":"USER.PRIVATE_DATASOURCE.un:testmarkt","authorName":"Test Markt","cookieText":"4at20200409111732","createdAt":{"date":30,"day":3,"hours":14,"minutes":43,"month":9,"nanos":704000000,"seconds":46,"time":1572443026704,"timezoneOffset":-60,"year":119},"createdBy":"USER.PRIVATE_DATASOURCE.un:testmarkt","createdByName":"Test Markt","displayedFrom":{"date":6,"day":6,"hours":13,"minutes":43,"month":3,"nanos":0,"seconds":0,"time":1554550980000,"timezoneOffset":-120,"year":119},"displayedTo":{"date":15,"day":3,"hours":13,"minutes":43,"month":3,"nanos":0,"seconds":0,"time":1586950980000,"timezoneOffset":-120,"year":120},"id":4,"lastChangeAt":{"date":9,"day":4,"hours":11,"minutes":17,"month":3,"nanos":605000000,"seconds":32,"time":1586423852605,"timezoneOffset":-120,"year":120},"message":"<strong>Text der 2. Nachricht<\/strong><br />\nLorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt.","nowDisplayedToInSeconds":510682,"roles":"GRUP.PRIVATE_DATASOURCE.un:r:leser,Rolle Leser","showPopup":false,"title":"2. Wartungsnachricht","updatedAt":{"date":9,"day":4,"hours":11,"minutes":17,"month":3,"nanos":605000000,"seconds":32,"time":1586423852605,"timezoneOffset":-120,"year":120},"updatedBy":"USER.PRIVATE_DATASOURCE.un:testmarkt","updatedByName":"Test Markt","createdAtStr":"30.10.2019 14:43","displayedFromStr":"06.04.2019 13:43","displayedToStr":"15.04.2020 13:43","updatedAtStr":"09.04.2020"}]; let $impMessdialog = $('<div class=\"modal-dialog modal-lg\" role=\"document\"><div class=\"modal-content\"><div class=\"modal-header d-block\"> <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"> <span aria-hidden=\"true\">×<\/span> <\/button><p class=\"card-text text-muted d-flex flex-wrap\"> <small class=\"ImpMessAuthor\"><\/small> <small class=\"px-1\">•<\/small> <small class=\"mr-auto pr-5 ImpMessPublDate\"><\/small> <small>IT Support<\/small><\/p><h3 class=\"card-title mb-0 text-body\"> <span class=\"badge badge-danger rounded py-2 px-1 mr-2\"> <\/span> <span class=\"ImpMessTitle\"><\/span><\/h3><\/div><div class=\"modal-body ImpMessText\"><\/div><\/div><\/div>'); result.forEach(function(messageObj){ let author = messageObj.authorName; let messDate = messageObj.updatedAtStr; let title = messageObj.title; let messBody = messageObj.message; $impMessdialog.find('.ImpMessAuthor').html(author); $impMessdialog.find('.ImpMessPublDate').html(messDate); $impMessdialog.find('.ImpMessTitle').html(title); $impMessdialog.find('.ImpMessText').html(messBody); dialogs.push($impMessdialog); $impMessdialog = $impMessdialog.clone(); }); $('#menu').append(dialogs); }
Tests:
$jq1124
tests($jq1124);
$jq224
tests($jq224);
$jq331
tests($jq331);
$jq1124 2
tests2($jq1124);
$jq224 2
tests2($jq224);
$jq331 2
tests2($jq331);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (6)
Previous results
Fork
Test case name
Result
$jq1124
$jq224
$jq331
$jq1124 2
$jq224 2
$jq331 2
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
llama3.1:latest
, generated one year ago):
Let's dive into the code and see what we can learn from it. **Code Analysis** The provided code appears to be related to testing or benchmarking of JavaScript libraries, specifically jQuery versions 1.12.4, 2.2.4, and 3.3.1. The code includes: 1. A block of HTML preparation code, which defines a basic HTML structure with a `menu` div. 2. A list of test cases in JSON format, each representing a specific benchmarking scenario or test name. 3. A benchmark result array, which contains execution speed measurements for each test case. **Key Observations** 1. The code utilizes jQuery versions 1.12.4, 2.2.4, and 3.3.1 in different tests. 2. Each test case has a unique name (e.g., `$jq1124`, `$jq224`, etc.), which might indicate specific test scenarios or configurations. 3. The benchmark result array shows execution speeds (ExecutionsPerSecond) for each test case, with Firefox 68 as the user agent. 4. There are two sets of tests: `tests()` and `tests2()`. This suggests that there might be differences in the testing setup or configuration between these two sets. **Questions** 1. What is the purpose of the HTML preparation code? 2. How do the different jQuery versions affect the execution speeds measured in the benchmark results? 3. Are there any specific reasons why some test cases are executed twice (e.g., `$jq1124` and `$jq1124 2`)? Please let me know which questions you'd like me to answer or if you have any further requests!
Related benchmarks:
replace
replace compare
Moment hash test
date diff
Comments
Confirm delete:
Do you really want to delete benchmark?