Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
jquery-1.11.0 versus jquery-3.7.1 - 2.0
Comparação entre as versões jquery-1.11.0 e jquery-3.7.1
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Browser:
Chrome 127
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
1.11.0
117.4 Ops/sec
3.7.1
122.2 Ops/sec
HTML Preparation code:
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script> <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script> <p id="result-jquery-1"></p> <p id="result-jquery-3"></p>
Script Preparation code:
function runBenchmark(version, resultElementId) { const iterations = 10000; // Número de iterações para o teste const container = $('#container'); container.empty(); // Cria muitos elementos para manipulação for (let i = 0; i < 1000; i++) { container.append('<div class="item">Item ' + i + '</div>'); } // Mede o tempo de execução const start = performance.now(); for (let i = 0; i < iterations; i++) { $('.item').toggleClass('highlight'); } const end = performance.now(); // Exibe o resultado const duration = end - start; document.getElementById(resultElementId).textContent = `Versão ${version} levou ${duration.toFixed(2)} ms para completar ${iterations} iterações.`; }
Tests:
1.11.0
runBenchmark('1.11.0', 'result-jquery-1');
3.7.1
runBenchmark('3.7.1', 'result-jquery-3');