projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #67 from kberg/master
[dygraphs.git]
/
tests
/
dygraph-many-points-benchmark.html
diff --git
a/tests/dygraph-many-points-benchmark.html
b/tests/dygraph-many-points-benchmark.html
index
2919706
..
b4f7471
100644
(file)
--- a/
tests/dygraph-many-points-benchmark.html
+++ b/
tests/dygraph-many-points-benchmark.html
@@
-82,8
+82,13
@@
document.getElementById('message').innerHTML =
"completed in " + (end - start) + " milliseconds.";
} else {
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 =
document.getElementById('message').innerHTML =
- "Durations: " + millisecondss;
+ "Durations: " + millisecondss
+ " Average: " + avg
;
}
if (durations.length > 0) {
}
if (durations.length > 0) {