5 <script type=
"text/javascript" src=
"../excanvas.js"></script>
7 <script type=
"text/javascript" src=
"../strftime/strftime-min.js"></script>
8 <script type=
"text/javascript" src=
"../rgbcolor/rgbcolor.js"></script>
9 <script type=
"text/javascript" src=
"../dygraph-canvas.js"></script>
10 <script type=
"text/javascript" src=
"../dygraph.js"></script>
11 <script type=
"text/javascript" src=
"data.js"></script>
14 <div id=
"div_g" style=
"width:600px; height:300px;"></div>
15 <div id=
"status"></div>
17 <script type=
"text/javascript">
22 for (var i =
0; i < num_tests; i++) {
23 var this_start = new Date;
24 // Calling destroy() here reduces the memory usage in Chrome by
25 // ~
1.2MB/instantiation.
28 document.getElementById(
"div_g"),
34 var this_end = new Date;
35 times.push([i, this_end - this_start]);
40 document.getElementById(
"status").innerHTML =
"Elapsed time: " + (end - start)/num_tests +
" ms/instantiation";
42 document.getElementById(
"div_g"),
44 labels: [
"Iteration",
"Time (ms)" ]
49 <p><b>Some numbers on a MacBook Pro
2.53 GHz Core
2 Duo
</b><br/>
50 commit bb5899c56e33716db724cb60a5120b91f5fccdeb
<br/>
51 Firefox
3.0.15:
28 ms/instantiation
<br/>
52 Safari
4.0.3:
15.02 ms/instantiation
<Br/>
55 commit
2847c1cf1a2874e9fe56b5749e6e105e37bb086a
<br/>
56 Firefox
3.0.15:
49.27 ms/instantiation
<br/>
57 Safari
4.0.3:
24.48 ms/instantiation
<br/>