-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathunknown_mac64_clang12.0.html
519 lines (478 loc) · 17.1 KB
/
unknown_mac64_clang12.0.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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
<html>
<head>
<script src="https://code.jquery.com/jquery-1.8.2.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/0.8.12/jquery.csv.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script>
google.load("visualization", "1", {packages:["corechart", "table"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var csv = $('#textInput').val();
var data = $.csv.toArrays(csv, {
onParseValue: $.csv.hooks.castToScalar
});
// Convert data for bar chart (summing all digits)
var timeData = {}; // type -> table
var funcRowMap;
var maxDigit = 0;
for (var i = 1; i < data.length; i++) {
var type = data[i][0];
var func = data[i][1];
var digit = data[i][2];
var time = data[i][3];
if (timeData[type] == null) {
timeData[type] = [["Function", "Time (ns)"/*, { role: "style" }*/]];
if (digit != 0)
funcRowMap = {};
}
var table = timeData[type];
if (digit != 0) {
if (funcRowMap[func] == null)
funcRowMap[func] = table.push([func, 0]) - 1;
table[funcRowMap[func]][1] += time;
}
else
table.push([func, time]);
maxDigit = Math.max(maxDigit, digit);
}
// Compute average
for (var type in timeData) {
var table = timeData[type];
for (var i = 1; i < table.length; i++)
table[i][1] /= maxDigit;
}
// Convert data for drawing line chart per random digit
var timeDigitData = {}; // type -> table
var funcColumnMap;
for (var i = 1; i < data.length; i++) {
var type = data[i][0];
var func = data[i][1];
var digit = data[i][2];
var time = data[i][3];
if (digit == 0)
continue;
if (timeDigitData[type] == null) {
timeDigitData[type] = [["Digit"]];
funcColumnMap = {};
}
var table = timeDigitData[type];
if (funcColumnMap[func] == null)
funcColumnMap[func] = table[0].push(func) - 1;
var row;
for (row = 1; row < table.length; row++)
if (table[row][0] == digit)
break;
if (row == table.length)
table.push([digit]);
table[row][funcColumnMap[func]] = time;
}
for (var type in timeData) {
$("#main").append(
$("<a>", {name: type}),
$("<h2>", {style: "padding-top: 70px; margin-top: -70px;"}).append(type)
);
$("#section").append($("<li>").append($("<a>", {href: "#" + type}).append(type)));
drawTable(type, timeData[type]);
drawBarChart(type, timeData[type]);
if (timeDigitData[type] != null)
drawDigitChart(type, timeDigitData[type]);
}
$(".chart").each(function() {
var chart = $(this);
var d = $("#downloadDD").clone().css("display", "");
$('li a', d).each(function() {
$(this).click(function() {
var svg = chart[0].getElementsByTagName('svg')[0].parentNode.innerHTML;
svg=sanitize(svg);
$('#imageFilename').val($("#title").html() + "_" + chart.data("filename"));
$('#imageGetFormTYPE').val($(this).attr('dltype'));
$('#imageGetFormSVG').val(svg);
$('#imageGetForm').submit();
});
});
$(this).after(d);
});
// Add configurations
var thisConfig = "unknown_mac64_clang12.0";
var configurations = ["[email protected]_cygwin32_gcc4.8","[email protected]_cygwin64_gcc4.8","[email protected]_win32_vc2013","[email protected]_win64_vc2013","unknown_mac32_clang7.0","unknown_mac64_clang10.0","unknown_mac64_clang12.0","unknown_mac64_clang7.0"];
for (var i in configurations) {
var c = configurations[i];
$("#configuration").append($("<li>", {class : (c == thisConfig ? "active" : "")}).append($("<a>", {href: c + ".html"}).append(c)));
}
}
function drawTable(type, timeData) {
var data = google.visualization.arrayToDataTable(timeData);
data.addColumn('number', 'Speedup');
data.sort([{ column: 1, desc: true }]);
var formatter1 = new google.visualization.NumberFormat({ fractionDigits: 3 });
formatter1.format(data, 1);
var div = document.createElement("div");
div.className = "tablechart";
$("#main").append(div);
var table = new google.visualization.Table(div);
redrawTable(0);
table.setSelection([{ row: 0, column: null}]);
function redrawTable(selectedRow) {
// Compute relative time using the first row as basis
var basis = data.getValue(selectedRow, 1);
for (var rowIndex = 0; rowIndex < data.getNumberOfRows(); rowIndex++)
data.setValue(rowIndex, 2, basis / data.getValue(rowIndex, 1));
var formatter = new google.visualization.NumberFormat({suffix: 'x'});
formatter.format(data, 2); // Apply formatter to second column
table.draw(data);
}
google.visualization.events.addListener(table, 'select',
function() {
var selection = table.getSelection();
if (selection.length > 0) {
var item = selection[0];
if (item.row != null)
redrawTable(item.row);
}
});
}
function drawBarChart(type, timeData) {
var defaultColors = ["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"];
var data = google.visualization.arrayToDataTable(timeData);
data.addColumn({ type: "string", role: "style" })
for (var rowIndex = 0; rowIndex < data.getNumberOfRows(); rowIndex++)
data.setValue(rowIndex, 2, defaultColors[rowIndex]);
data.sort([{ column: 1, desc: true }]);
var options = {
title: type,
chartArea: {'width': '70%', 'height': '70%'},
width: 800,
height: 300,
legend: { position: "none" },
hAxis: { title: "Time (ns)" }
};
var div = document.createElement("div");
div.className = "chart";
$(div).data("filename", type + "_time");
$("#main").append(div);
var chart = new google.visualization.BarChart(div);
chart.draw(data, options);
}
function drawDigitChart(type, timeDigitData) {
var data = google.visualization.arrayToDataTable(timeDigitData);
var options = {
title: type,
chartArea: {'width': '70%', 'height': '80%'},
hAxis: {
title: "Digit",
gridlines: { count: timeDigitData.length - 1 },
maxAlternation: 1,
minTextSpacing: 0
},
vAxis: {
title: "Time (ns) in log scale",
logScale: true,
minorGridlines: { count: 10 },
baseline: 0
},
width: 800,
height: 600
};
var div = document.createElement("div");
div.className = "chart";
$(div).data("filename", type + "_timedigit");
$("#main").append(div);
var chart = new google.visualization.LineChart(div);
chart.draw(data, options);
}
// http://jsfiddle.net/P6XXM/
function sanitize(svg) {
svg = svg
.replace(/\<svg/,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1"')
.replace(/zIndex="[^"]+"/g, '')
.replace(/isShadow="[^"]+"/g, '')
.replace(/symbolName="[^"]+"/g, '')
.replace(/jQuery[0-9]+="[^"]+"/g, '')
.replace(/isTracker="[^"]+"/g, '')
.replace(/url\([^#]+#/g, 'url(#')
.replace('<svg xmlns:xlink="http://www.w3.org/1999/xlink" ', '<svg ')
.replace(/ href=/g, ' xlink:href=')
/*.replace(/preserveAspectRatio="none">/g, 'preserveAspectRatio="none"/>')*/
/* This fails in IE < 8
.replace(/([0-9]+)\.([0-9]+)/g, function(s1, s2, s3) { // round off to save weight
return s2 +'.'+ s3[0];
})*/
// IE specific
.replace(/id=([^" >]+)/g, 'id="$1"')
.replace(/class=([^" ]+)/g, 'class="$1"')
.replace(/ transform /g, ' ')
.replace(/:(path|rect)/g, '$1')
.replace(/<img ([^>]*)>/gi, '<image $1 />')
.replace(/<\/image>/g, '') // remove closing tags for images as they'll never have any content
.replace(/<image ([^>]*)([^\/])>/gi, '<image $1$2 />') // closes image tags for firefox
.replace(/width=(\d+)/g, 'width="$1"')
.replace(/height=(\d+)/g, 'height="$1"')
.replace(/hc-svg-href="/g, 'xlink:href="')
.replace(/style="([^"]+)"/g, function (s) {
return s.toLowerCase();
});
// IE9 beta bugs with innerHTML. Test again with final IE9.
svg = svg.replace(/(url\(#highcharts-[0-9]+)"/g, '$1')
.replace(/"/g, "'");
if (svg.match(/ xmlns="/g).length == 2) {
svg = svg.replace(/xmlns="[^"]+"/, '');
}
return svg;
}
</script>
<style type="text/css">
@media (min-width: 800px) {
.container {
max-width: 800px;
}
}
textarea {
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
.tablechart {
width: 700px;
margin: auto;
padding-top: 20px;
padding-bottom: 20px;
}
.chart {
padding-top: 20px;
padding-bottom: 20px;
}
body { padding-top: 70px; }
</style>
</head>
<body>
<div class="container">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://github.com/miloyip/dtoa-benchmark"><span class="glyphicon glyphicon-home"></span> dtoa-benchmark</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Configuration <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" id="configuration">
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Section <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" id="section">
</ul>
</li>
</ul>
<p class="navbar-text navbar-right">Developed by <a href="https://github.com/miloyip" class="navbar-link">Milo Yip</a></p>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="page-header">
<h1 id="title">unknown_mac64_clang12.0</h1>
</div>
<div id="main"></div>
<h2>Source CSV</h2>
<textarea id="textInput" class="form-control" rows="5" readonly>
Type,Function,Digit,Time(ns)
randomdigit,ryu,1,54.300000
randomdigit,ryu,2,58.700000
randomdigit,ryu,3,56.100000
randomdigit,ryu,4,52.800000
randomdigit,ryu,5,51.500000
randomdigit,ryu,6,53.200000
randomdigit,ryu,7,49.000000
randomdigit,ryu,8,48.500000
randomdigit,ryu,9,45.500000
randomdigit,ryu,10,46.300000
randomdigit,ryu,11,43.200000
randomdigit,ryu,12,42.300000
randomdigit,ryu,13,38.300000
randomdigit,ryu,14,37.100000
randomdigit,ryu,15,36.200000
randomdigit,ryu,16,34.900000
randomdigit,ryu,17,34.500000
randomdigit,doubleconv,1,59.700000
randomdigit,doubleconv,2,69.000000
randomdigit,doubleconv,3,72.100000
randomdigit,doubleconv,4,74.300000
randomdigit,doubleconv,5,77.500000
randomdigit,doubleconv,6,84.900000
randomdigit,doubleconv,7,85.800000
randomdigit,doubleconv,8,89.100000
randomdigit,doubleconv,9,87.700000
randomdigit,doubleconv,10,88.200000
randomdigit,doubleconv,11,86.700000
randomdigit,doubleconv,12,93.200000
randomdigit,doubleconv,13,91.900000
randomdigit,doubleconv,14,99.100000
randomdigit,doubleconv,15,98.200000
randomdigit,doubleconv,16,101.700000
randomdigit,doubleconv,17,106.600000
randomdigit,fmt,1,38.200000
randomdigit,fmt,2,41.300000
randomdigit,fmt,3,38.600000
randomdigit,fmt,4,38.100000
randomdigit,fmt,5,38.500000
randomdigit,fmt,6,38.100000
randomdigit,fmt,7,38.500000
randomdigit,fmt,8,41.700000
randomdigit,fmt,9,45.700000
randomdigit,fmt,10,47.300000
randomdigit,fmt,11,47.000000
randomdigit,fmt,12,44.500000
randomdigit,fmt,13,44.700000
randomdigit,fmt,14,44.800000
randomdigit,fmt,15,45.200000
randomdigit,fmt,16,43.700000
randomdigit,fmt,17,47.500000
randomdigit,fpconv,1,87.600000
randomdigit,fpconv,2,102.000000
randomdigit,fpconv,3,111.600000
randomdigit,fpconv,4,117.200000
randomdigit,fpconv,5,122.600000
randomdigit,fpconv,6,125.700000
randomdigit,fpconv,7,123.100000
randomdigit,fpconv,8,126.000000
randomdigit,fpconv,9,125.200000
randomdigit,fpconv,10,125.800000
randomdigit,fpconv,11,126.400000
randomdigit,fpconv,12,127.600000
randomdigit,fpconv,13,128.900000
randomdigit,fpconv,14,130.800000
randomdigit,fpconv,15,131.900000
randomdigit,fpconv,16,133.000000
randomdigit,fpconv,17,138.700000
randomdigit,grisu2,1,84.000000
randomdigit,grisu2,2,93.700000
randomdigit,grisu2,3,97.100000
randomdigit,grisu2,4,97.100000
randomdigit,grisu2,5,98.100000
randomdigit,grisu2,6,100.400000
randomdigit,grisu2,7,102.600000
randomdigit,grisu2,8,100.000000
randomdigit,grisu2,9,101.200000
randomdigit,grisu2,10,103.600000
randomdigit,grisu2,11,104.500000
randomdigit,grisu2,12,110.600000
randomdigit,grisu2,13,108.100000
randomdigit,grisu2,14,110.400000
randomdigit,grisu2,15,117.200000
randomdigit,grisu2,16,113.700000
randomdigit,grisu2,17,119.500000
randomdigit,milo,1,48.200000
randomdigit,milo,2,53.400000
randomdigit,milo,3,54.300000
randomdigit,milo,4,57.400000
randomdigit,milo,5,63.300000
randomdigit,milo,6,66.100000
randomdigit,milo,7,68.300000
randomdigit,milo,8,69.000000
randomdigit,milo,9,69.400000
randomdigit,milo,10,70.000000
randomdigit,milo,11,71.700000
randomdigit,milo,12,74.500000
randomdigit,milo,13,73.100000
randomdigit,milo,14,75.300000
randomdigit,milo,15,77.200000
randomdigit,milo,16,80.200000
randomdigit,milo,17,83.600000
randomdigit,null,1,1.200000
randomdigit,null,2,1.200000
randomdigit,null,3,1.200000
randomdigit,null,4,1.200000
randomdigit,null,5,1.200000
randomdigit,null,6,1.200000
randomdigit,null,7,1.200000
randomdigit,null,8,1.200000
randomdigit,null,9,1.200000
randomdigit,null,10,1.200000
randomdigit,null,11,1.200000
randomdigit,null,12,1.200000
randomdigit,null,13,1.200000
randomdigit,null,14,1.200000
randomdigit,null,15,1.200000
randomdigit,null,16,1.200000
randomdigit,null,17,1.200000
randomdigit,ostringstream,1,1171.800000
randomdigit,ostringstream,2,1153.400000
randomdigit,ostringstream,3,1173.400000
randomdigit,ostringstream,4,1180.300000
randomdigit,ostringstream,5,1186.500000
randomdigit,ostringstream,6,1221.600000
randomdigit,ostringstream,7,1214.700000
randomdigit,ostringstream,8,1223.400000
randomdigit,ostringstream,9,1195.700000
randomdigit,ostringstream,10,1193.400000
randomdigit,ostringstream,11,1212.700000
randomdigit,ostringstream,12,1229.300000
randomdigit,ostringstream,13,1240.100000
randomdigit,ostringstream,14,1229.400000
randomdigit,ostringstream,15,1233.300000
randomdigit,ostringstream,16,1271.200000
randomdigit,ostringstream,17,1250.000000
randomdigit,ostrstream,1,1042.900000
randomdigit,ostrstream,2,1041.700000
randomdigit,ostrstream,3,1045.600000
randomdigit,ostrstream,4,1046.300000
randomdigit,ostrstream,5,1139.400000
randomdigit,ostrstream,6,1095.500000
randomdigit,ostrstream,7,1095.400000
randomdigit,ostrstream,8,1108.200000
randomdigit,ostrstream,9,1111.800000
randomdigit,ostrstream,10,1066.700000
randomdigit,ostrstream,11,1105.400000
randomdigit,ostrstream,12,1263.900000
randomdigit,ostrstream,13,1357.000000
randomdigit,ostrstream,14,1191.100000
randomdigit,ostrstream,15,1177.600000
randomdigit,ostrstream,16,1204.400000
randomdigit,ostrstream,17,1174.500000
randomdigit,sprintf,1,951.800000
randomdigit,sprintf,2,892.900000
randomdigit,sprintf,3,875.300000
randomdigit,sprintf,4,897.500000
randomdigit,sprintf,5,908.300000
randomdigit,sprintf,6,913.800000
randomdigit,sprintf,7,920.600000
randomdigit,sprintf,8,947.900000
randomdigit,sprintf,9,912.500000
randomdigit,sprintf,10,881.000000
randomdigit,sprintf,11,907.900000
randomdigit,sprintf,12,920.700000
randomdigit,sprintf,13,933.800000
randomdigit,sprintf,14,932.700000
randomdigit,sprintf,15,942.500000
randomdigit,sprintf,16,931.200000
randomdigit,sprintf,17,923.400000
</textarea>
</div>
<div class="row" id="downloadDD" style="display: none">
<div class="btn-group pull-right" >
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-picture"></span></button>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="#" dltype="image/jpeg">JPEG</a></li>
<li><a tabindex="-1" href="#" dltype="image/png">PNG</a></li>
<li><a tabindex="-1" href="#" dltype="application/pdf">PDF</a></li>
<li><a tabindex="-1" href="#" dltype="image/svg+xml">SVG</a></li>
</ul>
</div>
</div>
<form method="post" action="http://export.highcharts.com/" id="imageGetForm">
<input type="hidden" name="filename" id="imageFilename" value="" />
<input type="hidden" name="type" id="imageGetFormTYPE" value="" />
<input type="hidden" name="width" value="900" />
<input type="hidden" name="svg" value="" id="imageGetFormSVG" />
</form>
</div>
</body>
</html>