X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fdygraph-many-points-benchmark.html;h=b4f747176bd33d5bf0039eabb8d86e4711128939;hb=22bce4f209d99203fcb3c3892ddf5ddb6d359b93;hp=e9731d50d6ca6d5ea6dd0f9b0b84c8fd8e44fd20;hpb=62c2a51eba70b4ffb28080cec32321fd508b10b9;p=dygraphs.git diff --git a/tests/dygraph-many-points-benchmark.html b/tests/dygraph-many-points-benchmark.html index e9731d5..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) { @@ -103,7 +110,6 @@ document.getElementById('num_series_input').value = '1'; document.getElementById('roll_period_input').value = '1'; document.getElementById('repetitions').value = '1'; - updatePlot();