-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
278 lines (262 loc) · 17 KB
/
index.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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Charts for BenchmarkDotNet</title>
<meta name="description" content="A simple web app that charts your BenchmarkDotNet console results.">
<meta name="robots" content="index, follow">
<meta name="msapplication-TileColor" content="#333333">
<meta name="msapplication-config" content="browserconfig.xml">
<meta name="theme-color" content="#272b30">
<link rel="canonical" href="https://chartbenchmark.net">
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="manifest" href="/manifest.webmanifest">
<link rel="apple-touch-icon" sizes="180x180" href="/images/icons/apple-touch-icon.png">
<link rel="mask-icon" href="/images/icons/safari-pinned-tab.svg" color="#f94144">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.2.3/slate/bootstrap.min.css"
integrity="sha512-GixPbJydZH3yyD23SgcC/i/FIhLb+0F26ABBvEg9ejj90hYuXXjPphWTWTX5dIuolObna6iXz1nr5nog6Dex7w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
textarea {
white-space: pre;
}
.input-group .form-range {
height: initial;
}
.icon {
width: 1rem;
height: 1rem;
fill: #fff;
margin-right: 4px;
}
h1 svg {
width: 3rem;
height: 3rem;
fill: #f94144;
}
.btn-primary:not([disabled]):not(.disabled):focus {
background-image: linear-gradient(#52565a, #3a3f44 60%, #353a3f);
}
.btn-check:checked+.btn,
:not(.btn-check)+.btn:active,
.btn:first-child:active,
.btn.active,
.btn.show {
background-image: linear-gradient(#25282c, #292c30 40%, #2b2f32) !important;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.3/js/bootstrap.bundle.min.js"
integrity="sha512-i9cEfJwUwViEPFKdC1enz4ZRGBj8YQo6QByFTF92YXHi7waCqyexvRD75S5NVTsSiTv7rKWqG9Y5eFxmRsOn0A=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer type="module" src="/src/main.ts"></script>
</head>
<body class="mt-3 mb-5">
<div class="container-fluid">
<header>
<div class="col-sm-10 offset-sm-1">
<div class="row">
<div class="col">
<h1 class="text-center">
<a href="/" class="text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" class="align-text-bottom" viewBox="0 0 512 512">
<path
d="M32 32c17.7 0 32 14.3 32 32V400c0 8.8 7.2 16 16 16H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H80c-44.2 0-80-35.8-80-80V64C0 46.3 14.3 32 32 32zM160 224c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32s-32-14.3-32-32V256c0-17.7 14.3-32 32-32zm128-64V320c0 17.7-14.3 32-32 32s-32-14.3-32-32V160c0-17.7 14.3-32 32-32s32 14.3 32 32zm64 32c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32s-32-14.3-32-32V224c0-17.7 14.3-32 32-32zM480 96V320c0 17.7-14.3 32-32 32s-32-14.3-32-32V96c0-17.7 14.3-32 32-32s32 14.3 32 32z" />
</svg>
<br class="d-sm-none">
<span>Charts for BenchmarkDotNet</span>
</a>
</h1>
</div>
</div>
</div>
</header>
<main class="mb-5">
<div class="row">
<div class="col-sm-10 offset-sm-1">
<div class="row">
<div class="col">
<p class="lead text-center">Paste your console results below:</p>
<textarea id="resultsInput" rows="10" class="w-100 font-monospace" autocomplete="off"
spellcheck="false" aria-label="Your BenchmarkDotNet console results">
BenchmarkDotNet=v0.13.2, OS=Windows 11 (10.0.22621.674)
AMD Ryzen 9 6900HS Creator Edition, 1 CPU, 16 logical and 8 physical cores
.NET SDK=6.0.401
[Host] : .NET 5.0.17 (5.0.1722.21314), X64 RyuJIT AVX2
Job-DMBNZL : .NET 5.0.17 (5.0.1722.21314), X64 RyuJIT AVX2
Job-LVVPJF : .NET 6.0.9 (6.0.922.41905), X64 RyuJIT AVX2
Server=True InvocationCount=32 IterationCount=10
RunStrategy=Monitoring WarmupCount=1
| Method | Runtime | NumberOfValues | Mean | Error | StdDev | Allocated |
|---------------- |--------- |--------------- |-----------:|------------:|----------:|----------:|
| Int32ValuesXml | .NET 5.0 | 64 | 1,296.3 us | 88.44 us | 58.50 us | 113.63 KB |
| Int32ValuesJson | .NET 5.0 | 64 | 760.2 us | 140.28 us | 92.79 us | 112.23 KB |
| Int32ValuesXml | .NET 6.0 | 64 | 1,301.8 us | 263.00 us | 173.96 us | 112.81 KB |
| Int32ValuesJson | .NET 6.0 | 64 | 767.9 us | 159.57 us | 105.55 us | 111.65 KB |
| Int32ValuesXml | .NET 5.0 | 256 | 2,762.4 us | 295.13 us | 195.21 us | 118.75 KB |
| Int32ValuesJson | .NET 5.0 | 256 | 876.7 us | 85.14 us | 56.31 us | 116.51 KB |
| Int32ValuesXml | .NET 6.0 | 256 | 2,668.7 us | 182.09 us | 120.44 us | 118.62 KB |
| Int32ValuesJson | .NET 6.0 | 256 | 848.2 us | 28.09 us | 18.58 us | 116.09 KB |
| Int32ValuesXml | .NET 5.0 | 1024 | 8,440.8 us | 1,488.93 us | 984.84 us | 146.55 KB |
| Int32ValuesJson | .NET 5.0 | 1024 | 1,285.0 us | 185.82 us | 122.91 us | 132.95 KB |
| Int32ValuesXml | .NET 6.0 | 1024 | 8,262.4 us | 325.18 us | 215.09 us | 144.92 KB |
| Int32ValuesJson | .NET 6.0 | 1024 | 1,287.0 us | 193.03 us | 127.68 us | 133.89 KB |
</textarea>
<p class="text-center">
<small class="text-muted">(This information does not leave your browser.)</small>
</p>
</div>
</div>
<form autocomplete="off">
<div class="row">
<div class="col-12 col-xl-12 col-xxl-4 mb-2">
<label class="form-label" for="widthRangeInput">Size</label>
<div class="d-flex justify-content-between">
<div class="input-group input-group-sm me-2">
<span id="widthSpan" class="input-group-text">Width</span>
<input type="range" id="widthRangeInput" min="0" max="1" step="0.05" value="0.5"
class="form-control form-range" aria-label="Chart Width"
aria-describedby="widthSpan">
</div>
<div class="input-group input-group-sm">
<span id="heightSpan" class="input-group-text">Height</span>
<input type="range" id="heightRangeInput" min="0" max="1" step="0.05"
value="0.25" class="form-control form-range" aria-label="Chart Height"
aria-describedby="heightSpan">
</div>
</div>
</div>
<div class="col-4 col-xl-4 col-xxl-3">
<label class="form-label">Display</label>
<div id="displayRadioContainer">
<div class="form-check form-check-inline d-block d-xl-inline-block">
<input class="form-check-input" type="radio" name="displayRadio"
id="allDisplayRadio" value="All" checked>
<label class="form-check-label" for="allDisplayRadio">
All
</label>
</div>
<div class="form-check form-check-inline d-block d-xl-inline-block">
<input class="form-check-input" type="radio" name="displayRadio"
id="durationDisplayRadio" value="Duration">
<label class="form-check-label" for="durationDisplayRadio">
Duration
</label>
</div>
<div class="form-check form-check-inline d-block d-xl-inline-block me-0">
<input class="form-check-input" type="radio" name="displayRadio"
id="allocationDisplayRadio" value="Allocation">
<label class="form-check-label" for="allocationDisplayRadio">
Allocation
</label>
</div>
</div>
</div>
<div class="col-4 col-xl-4 col-xxl-3">
<label class="form-label">Scale</label>
<div id="scaleRadioContainer">
<div class="form-check form-check-inline d-block d-xl-inline-block">
<input class="form-check-input" type="radio" name="scaleRadio"
id="linearScaleRadio" value="Linear">
<label class="form-check-label" for="linearScaleRadio">
Linear
</label>
</div>
<div class="form-check form-check-inline d-block d-xl-inline-block">
<input class="form-check-input" type="radio" name="scaleRadio"
id="log10ScaleRadio" value="Log10">
<label class="form-check-label" for="log10ScaleRadio">
Log10
</label>
</div>
<div class="form-check form-check-inline d-block d-xl-inline-block me-0">
<input class="form-check-input" type="radio" name="scaleRadio"
id="log2ScaleRadio" value="Log2" checked>
<label class="form-check-label" for="log2ScaleRadio">
Log2
</label>
</div>
</div>
</div>
<div class="col-4 col-xl-4 col-xxl-2">
<label class="form-label">Theme</label>
<div id="themeRadioContainer">
<div class="form-check form-check-inline d-block d-xl-inline-block">
<input class="form-check-input" type="radio" name="themeRadio"
id="darkThemeRadio" value="Dark" checked>
<label class="form-check-label" for="darkThemeRadio">
Dark
</label>
</div>
<div class="form-check form-check-inline d-block d-xl-inline-block me-0">
<input class="form-check-input" type="radio" name="themeRadio"
id="lightThemeRadio" value="Light">
<label class="form-check-label" for="lightThemeRadio">
Light
</label>
</div>
</div>
</div>
</div>
</form>
<hr>
<div id="chartWrapper" class="mx-auto position-relative rounded" style="height: 400px; width: 50%;">
<canvas id="chartCanvas"></canvas>
</div>
<hr>
<div class="text-center">
<button id="copyToClipboardButton" type="button" class="btn btn-primary mb-2" data-feedback-text="✌️">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 512 512">
<path
d="M224 0c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224zM64 160c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64H64V224h64V160H64z" />
</svg>
<span>Copy</span>
</button>
<button id="downloadButton" type="button" class="btn btn-primary mb-2">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 512 512">
<path
d="M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zM432 456c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24z" />
</svg>
<span>Download</span>
</button>
<div id="shareButtonContainer" class="btn-group mb-2">
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown"
aria-expanded="false">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 448 512">
<path
d="M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z" />
</svg>
<span>Share</span>
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" data-action="shareAsUrl" href="#">Link</a></li>
<li><a class="dropdown-item" data-action="shareAsImage" href="#">Chart image</a></li>
</ul>
</div>
</div>
</div>
</div>
</main>
<footer class="text-center small">
<p>
Made with ❤️&☕ by <a href="https://github.com/yv989c" target="_blank">yv989c</a>
</p>
<p>
Powered by:<br><a href="https://bootswatch.com/" target="_blank">Bootswatch</a>,
<a href="https://fontawesome.com/" target="_blank">Font Awesome</a>,<br class="d-sm-none">
<a href="https://www.chartjs.org/" target="_blank">Chart.js</a>,
<a href="https://github.com/pieroxy/lz-string" target="_blank">lz-string</a>,
<a href="https://vitejs.dev/" target="_blank">Vite</a>,
and <a href="https://github.com/yv989c/ChartsForBenchmarkDotNet" target="_blank">GitHub</a>
</p>
</footer>
</div>
<script defer data-name="BMC-Widget" data-cfasync="false"
src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="yv989c"
data-description="Support me on Buy me a coffee!" data-message="" data-color="#FF5F5F" data-position="Right"
data-x_margin="18" data-y_margin="18"></script>
<script defer src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "767ff100230840c1802e2bc54c5453e9"}'></script>
</body>
</html>