/ Published in: PHP
URL: http://blog.projekt2k.de/2010/01/benchmarking-jquery-1-4/
Disable Firebug and plugins, close other tabs and close other programs for more accurate results!
Expand |
Embed | Plain Text
function t() { } $(document).ready(function() { var s = t(); for (var i=0; i<10000; i=i+1) { $('#content').html("hello"); } $('#out').append( (t()-s) +'ms'); }); <div> <p>Time: <span id="out"></span></p> </div> <div> <p>Content: <span id="content"></span></p> </div>
You need to login to post a comment.
