Cache functions

Benchmark created by Tomas Corral on


Description

Test if cache functions is faster that a new instance each time.

Preparation HTML

<script>
  var emptyFunction = function(){};
  function method1(){
  return emptyFunction();
  }
  function method2(){
  return (function(){})();
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Use Cached function
method1();
ready
Not use cached function
method2();
ready

Revisions

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

  • Revision 1: published by Tomas Corral on