-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport.html
208 lines (205 loc) · 7.02 KB
/
report.html
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!doctype html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"></script>
<script>
function plotChart(divId, chartData) {
// Convert from stringified html, to valid JSON
const chartDetails = JSON.parse(chartData.replace(/"/g,'"'));
new Chart(document.getElementById(divId), {
type: chartDetails.type,
data: {
labels: chartDetails.labels,
datasets: chartDetails.datasets
},
options: {
legend: { display: chartDetails.legend },
title: {
display: true,
text: chartDetails.title
}
}
});
}
</script>
<html>
<head>
<title>Hyperledger Caliper Report</title>
<meta charset="UTF-8"/>
<style type="text/css">
.left-column {
position: fixed;
width:20%;
}
.left-column ul {
display: block;
padding: 0;
list-style: none;
border-bottom: 1px solid #d9d9d9;
font-size: 14px;
}
.left-column h2{
font-size: 24px;
font-weight: 400;
margin-block-end: 0.5em;
}
.left-column h3{
font-size: 18px;
font-weight: 400;
margin-block-end: 0.5em;
}
.left-column li{
margin-left: 10px;
margin-bottom: 5px;
color: #5e6b73;
}
.right-column {
margin-left: 22%;
width:60%;
}
.right-column table {
font-size:11px;
color:#333333;
border-width: 1px;
border-color: #666666;
border-collapse: collapse;
margin-bottom: 10px;
}
.right-column h2{
font-weight: 400;
}
.right-column h3{
font-weight: 400;
}
.right-column h4 {
font-weight: 400;
margin-block-end: 0;
}
.right-column th {
border-width: 1px;
font-size: small;
padding: 8px;
border-style: solid;
border-color: #666666;
background-color: #f2f2f2;
}
.right-column td {
border-width: 1px;
font-size: small;
padding: 8px;
border-style: solid;
border-color: #666666;
background-color: #ffffff;
font-weight: 400;
}
.tag {
margin-bottom: 10px;
padding: 5px 10px;
}
pre {
padding: 10px;
margin-bottom: 10px;
border-radius: 5px;
background-color: #f2f2f2;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-khtml-border-radius: 5px;
overflow:auto;
max-height:300px;
font-size:12px;
}
.charting {
display:flex;
flex-direction:row;
flex-wrap: wrap;
page-break-inside: auto;
}
.chart {
display:flex;
flex:1;
max-width: 50%;
}
</style>
</head>
<body style="font-family: IBM Plex Sans; font-weight: 200;">
<main>
<div class="left-column">
<img src="https://hyperledger.github.io/caliper/assets/img/hyperledger_caliper_logo_color.png" style="width:95%;" alt="">
<ul>
<h3> Basic information</h3>
<li>DLT:  <span style="font-weight: 500;">fabric</span></li>
<li>Name:  <span style="font-weight: 500;">basic-contract-benchmark</span></li>
<li>Description:  <span style="font-weight: 500;">A test benchmark</span></li>
<li>Benchmark Rounds:  <span style="font-weight: 500;">1</span></li>
<li><a href="#benchmarkInfo">Details</a></li>
</ul>
<ul>
<h3> Benchmark results</h3>
<li><a href="#benchmarksummary">Summary</a></li>
<li><a href="#createAsset">createAsset</a></li>
</ul>
<ul>
<h3> System under test</h3>
<li><a href="#sutdetails">Details</a></li>
</ul>
</div>
<div class="right-column">
<h1 style="padding-top: 3em; font-weight: 500;">Caliper report</h1>
<div style="border-bottom: 1px solid #d9d9d9; margin-bottom: 10px;" id="benchmarksummary">
<table style="min-width: 100%;">
<h3>Summary of performance metrics</h3>
<tr>
<th>Name</th> <th>Succ</th> <th>Fail</th> <th>Send Rate (TPS)</th> <th>Max Latency (s)</th> <th>Min Latency (s)</th> <th>Avg Latency (s)</th> <th>Throughput (TPS)</th>
</tr>
<tr>
<td>createAsset</td> <td>50</td> <td>0</td> <td>70.9</td> <td>0.32</td> <td>0.03</td> <td>0.13</td> <td>67.4</td>
</tr>
</table>
</div>
<div style="border-bottom: 1px solid #d9d9d9; padding-bottom: 10px;" id="createAsset">
<h2>Benchmark round: createAsset</h2>
<p>Create asset benchmark</p>
<pre style="overflow: visible;white-space: pre-wrap;max-height:100%;">rateControl:
type: linear-rate
opts:
startingTps: 50
finishingTps: 200
</pre>
<h3>Performance metrics for createAsset</h3>
<table style="min-width: 100%;">
<tr>
<th>Name</th> <th>Succ</th> <th>Fail</th> <th>Send Rate (TPS)</th> <th>Max Latency (s)</th> <th>Min Latency (s)</th> <th>Avg Latency (s)</th> <th>Throughput (TPS)</th>
</tr>
<tr>
<td>createAsset</td> <td>50</td> <td>0</td> <td>70.9</td> <td>0.32</td> <td>0.03</td> <td>0.13</td> <td>67.4</td>
</tr>
</table>
<h3>Resource utilization for createAsset</h3>
</div>
<div style="border-bottom: 1px solid #d9d9d9; padding-bottom: 10px;">
<h2>Test Environment</h2>
<h3>benchmark config</h3>
<pre id="benchmarkInfo" style="overflow: visible;white-space: pre-wrap;max-height:100%;">name: basic-contract-benchmark
description: A test benchmark
workers:
number: 2
type: local
rounds:
- label: createAsset
description: Create asset benchmark
txNumber: 50
rateControl:
type: linear-rate
opts:
startingTps: 50
finishingTps: 200
workload:
module: workload/createAsset.js
arguments:
contractId: basic
</pre>
<h3>SUT</h3>
<pre id="sutdetails">not provided</pre>
</div>
</div>
</main>
</body>
</html>