@@ -88,11 +88,13 @@ export const DEFAULT_INDEX_HTML = String.raw`<!DOCTYPE html>
88
88
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Slight shadow */
89
89
}
90
90
.benchmark-chart-overview {
91
+ display: flex;
92
+ flex-direction: column;
91
93
max-width: 90%;
92
94
width: auto; /* Make width adaptive */
93
95
min-width: 1000px; /* Set minimum width to 1000px */
94
- height: auto ; /* Make height adaptive */
95
- min-height: 600px ;
96
+ height: 80vh ; /* Make height adaptive */
97
+ min-height: 1000px ;
96
98
max-height: 1500px; /* Make height adaptive */
97
99
background-color: #ffffff; /* White background for better chart display */
98
100
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Slight shadow */
@@ -210,8 +212,8 @@ export const DEFAULT_INDEX_HTML = String.raw`<!DOCTYPE html>
210
212
// Get normalized data with display flag
211
213
function getNormalizedData(dataSets) {
212
214
function extractValuesAndTitle(map) {
213
- const linuxEntry = [...map.values()].find(entry => entry[0].bench.extra === 'linux_avg ');
214
- const asterinasEntry = [...map.values()].find(entry => entry[0].bench.extra === 'aster_avg ');
215
+ const linuxEntry = [...map.values()].find(entry => entry[0].bench.extra === 'linux_result ');
216
+ const asterinasEntry = [...map.values()].find(entry => entry[0].bench.extra === 'aster_result ');
215
217
216
218
if (!linuxEntry || !asterinasEntry) {
217
219
throw new Error('Linux or Asterinas entry not found');
@@ -464,12 +466,12 @@ export const DEFAULT_INDEX_HTML = String.raw`<!DOCTYPE html>
464
466
465
467
const nameElem = document.createElement('h1');
466
468
nameElem.className = 'benchmark-title';
467
- nameElem.textContent = dataSet.values().next().value.length > 0 ? dataSet.values().next().value[0 ].title : '';
469
+ nameElem.textContent = dataSet.values().next().value.length > 0 ? dataSet.values().next().value[dataSet.values().next().value.length-1 ].title : '';
468
470
setElem.appendChild(nameElem);
469
-
471
+ console.log(dataSet);
470
472
const descriptionElem = document.createElement('div');
471
473
descriptionElem.className = 'chart-description';
472
- descriptionElem.textContent = dataSet.values().next().value.length > 0 ? dataSet.values().next().value[0 ].description : '';
474
+ descriptionElem.textContent = dataSet.values().next().value.length > 0 ? dataSet.values().next().value[dataSet.values().next().value.length-1 ].description : '';
473
475
setElem.appendChild(descriptionElem);
474
476
475
477
const graphsElem = document.createElement('div');
0 commit comments