fn calling to build a string

Benchmark created by ehynds on


Preparation HTML

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

Setup

var foo = "";
  
  function build(){
   return "<li></li>";
  }
  

  Benchmark.prototype.setup = function() {
    foo = "";
  };

Test runner

Ready to run.

Testing in
TestOps/sec
straight up, yo
foo += '<li></li>';
ready
fn call
foo += build();
ready

Revisions

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