jquery-window-cache

Benchmark created by Richard Scarrott on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<script>
  var $window = $(window);
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
cached
$window.height();
ready
!cached
$(window).height();
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Richard Scarrott on