File: charts-template.html

package info (click to toggle)
parallel-hashmap 1.4.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,872 kB
  • sloc: cpp: 20,492; ansic: 1,114; python: 492; makefile: 85; haskell: 56; perl: 43; sh: 23
file content (135 lines) | stat: -rw-r--r-- 5,350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Hash Table Benchmarks</title>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="./style.css" />
    <link href="./js/examples.css" rel="stylesheet" type="text/css">
    <script language="javascript" type="text/javascript" src="./js/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.mousewheel.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.canvaswrapper.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.colorhelpers.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.saturated.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.browser.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.drawSeries.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.errorbars.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.uiConstants.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.logaxis.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.symbol.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.flatdata.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.navigate.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.fillbetween.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.stack.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.touchNavigate.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.hover.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.touch.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.time.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.axislabels.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.selection.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.composeImages.js"></script>
    <script language="javascript" type="text/javascript" src="./js/jquery.flot.legend.js"></script>

    <script type="text/javascript">

    series_settings = {
        lines:  { show: true, lineWidth: 2 },
        points: { show: true, radius: 2 }
    };

    grid_settings = { tickColor: '#ddd' };

    divider = 10

    xaxis_settings = {
        tickSize:      200000000 / divider,         <!-- 200000000 -->
        tickFormatter: function(num, obj) { return parseInt(num/1000000) + 'M'; }
    };

    yaxis_runtime_settings = {
        labelWidth:    60,
        tickFormatter: function(num, obj) { return num + ' sec.'; }
    };

    yaxis_memory_settings = {
        labelWidth:    60,
        tickSize:      10*1024*1024*1024 / divider,    <!-- 1024 -->
        tickFormatter: function(num, obj) { return parseInt(num/1024/1024) + 'MB'; }
    };

    legend_settings = {
        position: 'nw',
        show: true,
        backgroundOpacity: 0
    };

    runtime_settings = {
        series: series_settings,
        grid:   grid_settings,
        xaxis:  xaxis_settings,
        yaxis:  yaxis_runtime_settings,
        legend: legend_settings,
        zoom: { interactive: true },
        pan:  { interactive: true }
    };

    memory_settings = {
        series: series_settings,
        grid:   grid_settings,
        xaxis:  xaxis_settings,
        yaxis:  yaxis_memory_settings,
        legend: legend_settings,
        zoom: { interactive: true },
        pan:  { interactive: true }
    };

    __CHART_DATA_GOES_HERE__

    $(function () {
        __PLOT_SPEC_GOES_HERE__
    });
    
    </script>
</head>

<body>
    <style>
       body, * { font-family: sans-serif; }
       div.table-title {
           width: 700px;
           text-indent: 75px;
           text-decoration-line: underline;
           text-decoration-style: solid;
           font-style: normal;
           font-size: 0.9em; 
           color: #222;
           margin-top:  25px; 
           margin-left: 25px; 
       }
       div.chart {
           width:  800px;
           height: 300px;
           font-style: normal;
           font-size: 0.75em;
           margin-left: 25px; 
       }
       div.xaxis-title {
           width: 700px;
           text-align: center;
           text-decoration-line: underline;
           text-decoration-style: solid;
           font-style: italic;
           font-size: 0.85em;
           color: #666;
           margin-top:  10px; 
           margin-bottom: 50px; 
           margin-left: 25px; 
       }

   </style>

__PLOT_DIV_SPEC_GOES_HERE__

</body>
</html>