Remove many points from gallery
authorDan Vanderkam <danvdk@gmail.com>
Sun, 31 Dec 2017 18:33:47 +0000 (13:33 -0500)
committerDan Vanderkam <danvdk@gmail.com>
Sun, 31 Dec 2017 18:33:47 +0000 (13:33 -0500)
gallery/data.js
gallery/index.html
gallery/many-points.js [deleted file]

index 3ab0b66..bbccab0 100644 (file)
@@ -2683,11 +2683,3 @@ var stockData = function() {
       "2009-09-15,9280.67;9712.28;9829.87,4297.2232125907;4497.07133894216;4551.51896800004\n" +
       "2009-10-15,9487.67;9712.73;10092.2,4388.84340147194;4492.9525342659;4668.48924723722\n";
 };
-
-function dataManyPoints() {
-    var data = [];
-    for (var i = 0; i < 1000000; ++i) {
-       data[i] = [i, i % 1009, i % 1013, i % 1019, i % 1021]
-    }
-    return data
-}
index c834c31..6d546b0 100644 (file)
@@ -33,7 +33,6 @@
     <script src="temperature-sf-ny.js"></script>
     <script src="interaction.js"></script>
     <script src="linear-regression.js"></script>
-    <script src="many-points.js"></script>
 
     <!-- These might not remain in the gallery
     <script src="dygraph-simple.js"></script>
diff --git a/gallery/many-points.js b/gallery/many-points.js
deleted file mode 100644 (file)
index afae3ee..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-/*global Gallery,Dygraph,data */
-/*global dataManyPoints */
-Gallery.register(
-  'many-points',
-  {
-    name: 'Many Points',
-    title: 'Many Points Benchmark',
-    setup: function(parent) {
-      parent.innerHTML = "<div id='many_points_div' style='width: 600px; height: 300px;'></div><p id='many_points_timing'></p>";
-    },
-    run: function() {
-      var data = dataManyPoints();
-      var startTimeMillis = Date.now();       
-      var g = new Dygraph(document.getElementById("many_points_div"), data, {});
-      document.getElementById('many_points_timing').innerHTML = (Date.now() - startTimeMillis) + 'ms';
-    }
-   });