X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fdygraph-many-points-benchmark.html;h=b4f747176bd33d5bf0039eabb8d86e4711128939;hb=22bce4f209d99203fcb3c3892ddf5ddb6d359b93;hp=e092da913bc6f46c2ffc27c069c950d0c9e51fff;hpb=7344fae2d23c8ebb0ac4cfac36e443beed6022be;p=dygraphs.git diff --git a/tests/dygraph-many-points-benchmark.html b/tests/dygraph-many-points-benchmark.html index e092da9..b4f7471 100644 --- a/tests/dygraph-many-points-benchmark.html +++ b/tests/dygraph-many-points-benchmark.html @@ -6,10 +6,12 @@ - - - - + + +

Plot which can be easily generated with different numbers of points for @@ -80,8 +82,13 @@ document.getElementById('message').innerHTML = "completed in " + (end - start) + " milliseconds."; } else { + var avg = 0; + for (var i = 0; i < millisecondss.length; i++) { + avg+=millisecondss[i]; + } + avg/=millisecondss.length; document.getElementById('message').innerHTML = - "Durations: " + millisecondss; + "Durations: " + millisecondss + " Average: " + avg; } if (durations.length > 0) {