Yolo

JavaScript performance comparison

Test case created

Info

Silly

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var arr = [9,3,5,1,2,5,6,2,2,4,6,1,7,4,5,9,3,5,1,2,5,6,2,2,4,6,1,7,4,5,9,3,5,1,2,5,6,2,2,4,6,1,7,4,5,9,3,5,1,2,5,6,2,2,4,6,1,7,4,5,9,3,5,1,2,5,6,2,2,4,6,1,7,4,5,9,3,5,1,2,5,6,2,2,4,6,1,7,4,5,9,3,5,1,2,5,6,2,2,4,6,1,7,4,5,9,3,5,1,2,5,6,2,2,4,6,1,7,4,5];
};
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Transform
function generateDataSeriesFromYValues(arr) {
  var data = [];
  for (var i = 0; i < arr.length; i++) {
    data.push({x: i, y: arr[i]});
  }

  return data;
}

generateDataSeriesFromYValues(arr);
pending…
sdf
function generateDataSeriesFromYValues(arr) {
  var data = [];
  for (var i = 0; i < arr.length; i++) {
    data.push({x: i, y: arr[i]});
  }

  return data;
}

generateDataSeriesFromYValues(arr);
pending…

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

Compare results of other browsers

0 comments

Add a comment