Commit | Line | Data |
---|---|---|
bb5899c5 DV |
1 | <html> |
2 | <head> | |
3 | <title>noise</title> | |
4 | <!--[if IE]> | |
5 | <script type="text/javascript" src="excanvas.js"></script> | |
6 | <![endif]--> | |
7 | <script type="text/javascript" src="../dygraph-combined.js"></script> | |
8 | <script type="text/javascript" src="../dygraph-canvas.js"></script> | |
9 | <script type="text/javascript" src="../dygraph.js"></script> | |
10 | <script type="text/javascript" src="data.js"></script> | |
11 | </head> | |
12 | <body> | |
13 | <div id="g" style="width:600px; height:300px;"></div> | |
14 | <div id="status"></div> | |
15 | ||
16 | <script type="text/javascript"> | |
1ac31d4e | 17 | var num_tests = 100; |
bb5899c5 DV |
18 | var start = new Date; |
19 | ||
20 | for (var i = 0; i < num_tests; i++) { | |
21 | g = new Dygraph( | |
22 | document.getElementById("g"), | |
23 | NoisyData, { | |
24 | rollPeriod: 7, | |
25 | errorBars: true | |
26 | } | |
27 | ); | |
28 | } | |
29 | ||
30 | var end = new Date; | |
31 | ||
32 | document.getElementById("status").innerHTML = "Elapsed time: " + (end - start)/num_tests + " ms/instantiation"; | |
33 | </script> | |
1ac31d4e | 34 | |
ab68ea2d | 35 | <p><b>Some numbers on a MacBook Pro 2.53 GHz Core 2 Duo</b><br/> |
1ac31d4e DV |
36 | commit bb5899c56e33716db724cb60a5120b91f5fccdeb<br/> |
37 | Firefox 3.0.15: 28 ms/instantiation<br/> | |
38 | Safari 4.0.3: 15.02 ms/instantiation<Br/> | |
39 | <br/> | |
40 | ||
ab68ea2d DV |
41 | commit 2847c1cf1a2874e9fe56b5749e6e105e37bb086a<br/> |
42 | Firefox 3.0.15: 49.27 ms/instantiation<br/> | |
43 | Safari 4.0.3: 24.48 ms/instantiation<br/> | |
1ac31d4e | 44 | </p> |
bb5899c5 DV |
45 | </body> |
46 | </html> |