1000 inserts/s

  var pts = [];
  var lastVal = 2000;
  var add = 0;
  var initial = [];
  for (var i = 0; i < 1000000; i++) {
    add = Math.random() * 10 - 5;
    lastVal += add;
    if (i < 1000) {
      initial.push({
        x: i,
        y: lastVal
      });
    }
    else {
      pts.push({
        x: i,
        y: lastVal
      });
    }
  }
  var chart = ReactiveChart.chart({
    element: "_chart1",
    type: "x",
    title: "Adding 1000 points per second",
    series: {
      shape: "line",
      series: [{
        id: "series",
        data: initial,
        aggregate: {
          maxNrOfItems: 400,
          interval: "pow2"
        }
      }]
    }
  });
  var start = 0;
  var data = chart.series.collection.get(0).data;
  var sd = Date.now();
  function loadChunk() {
    ReactiveChart.reactive.inTransaction(function () {
      var nr = 0;
      var ed = Date.now();
      var diff = ed - sd;
      var toAdd = diff;
      sd = ed;
      for (var i = start; i < pts.length; i++) {
        data.push(pts[i]);
        start++;
        nr++;
        if (nr > toAdd) {
          break;
        }
      }
      setTimeout(loadChunk, 30);
    });
  }
  loadChunk();