jtachella's picture
Upload 4 files
ee10cab verified
<html>
<head>
<meta charset="utf-8"/>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>📈</text></svg>">
<style>
/*
Comprehensive Base Stylesheet - https://fvsch.com/base-stylesheet/
Makes browser default styles more consistent, creating a canvas that you
should modify for your project. Fully commented. Last update: 2011-10-02.
*/
/* CONTAINERS */
body {
margin: auto;
max-width: 70em;
padding: 1.5em 3% 8em; /* Browsers have default 8px margins _or_ padding! */
font-size: 100%; /* See: http://www.informationarchitects.jp/en/100e2r/ */
line-height: 1.5; /* Default value, `normal`, depends on the font */
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; /* ripoff from github */
}
/* HTML5 blocks - needed in older browsers */
article, aside, figcaption, figure, footer, header, nav, section {
display: block;
}
/* PARAGRAPHS */
h1, h2, h3, h4 {
line-height: 1.25; /* Bigger text is often nicer with smaller line height */
font-weight: bold; /* Browser default. Use `normal` for less bulky titles */
}
h1 {
margin: 0.5em 0 .5em; /* Titles should be close to the text they describe */
font-size: 2em;
}
h2 {
margin: 2em 0 .5em; /* Titles should be close to the text they describe */
font-size: 1.5em;}
h3 {
margin: 3em 0 .5em; /* Titles should be close to the text they describe */
font-size: 1.2em;}
h4 {
margin: 1.5em 0 .5em; /* Titles should be close to the text they describe */
font-size: 1em;
}
ul, ol {
margin: 1em 0; /* Default for all browsers except IE */
padding-left: 40px; /* IE has a 40px margin-left instead */
}
p {
margin: 1em 0;
}
blockquote {
margin: 1em 40px; /* Same for all browsers - Customize or remove */
}
figure {
margin: 1em 0; /* Default in HTML5 spec: `1em 40px` */
}
/* LINKS */
/* Default browser styles (from Firefox, similar in most browsers) */
a {
text-decoration: none;
}
a:link,
a:visited {
color: DodgerBlue;
}
a:active {
color: #EE0000;
}
/* Add your own styles for hover _and_ focus styles */
a:hover, a:focus {
text-decoration: none;
}
/* Remove dotted outline clicked links - Keeps outline on focus */
a:active, a:hover {
outline: none;
}
/* No border around images in links */
a img {
border: none;
}
/* MISC TEXT-LEVEL ELEMENTS */
/* Make quotations and references more visible */
q, cite {
font-style: italic;
}
/* Remove automatic quotation marks for inline quotations
(`q {quotes:none}` not implemented in WebKit) */
q:before, q:after {
content: "";
}
/* Stopping superscript and subscript from adding to the line's leading */
sup, sub {
line-height: 0;
}
/* FORMS */
fieldset {
margin: 0; /* Common default is `0 2px` */
padding: 0; /* Common default (roughly): `.35em .625em .75em` */
border: none;
}
input, button, select {
vertical-align: middle; /* Helps keep form elements roughly aligned */
}
select {
border: 1px solid #aaa;
border-radius: 3px;
padding: 5px;
background-color: transparent;
padding: 4px;
color: #333;
}
/* TABLES */
table {
border-collapse: collapse; /* Merges cell borders together */
/* Browser default: border-collapse: separate; border-spacing: 2px; */
}
td, th {
padding: 1px; /* Same as browser default - set to "0" to remove padding */
vertical-align: top; /* Default is "middle" */
text-align: left; /* Default for TH elements is "center" */
}
td:first-child, th:first-child {
empty-cells: hide; /* Hide empty cells when they're the first in the row */
}
/* Custom stuff on top of the base style sheet */
.status {
font-weight: bold;
font-family: monospace;
color: white;
padding: .25em .4em;
border-radius: .2em;
}
.success {
background-color: forestgreen;
}
.failure {
background-color: orangered;
}
.error {
background-color: firebrick;
}
.summary a {
font-weight: 500;
}
.highlight {
margin: 0;
}
.highlight pre {
padding: 1em;
border: 1px solid #eee;
background-color: #f5f5f5;
margin-bottom: 0.1em;
overflow-x: auto;
}
.source {
margin: 0.3em 0 2em;
font-size: 90%;
}
.source a:visited,
.source a:link {
color: #666;
text-decoration: underline;
}
.source a:hover, a:focus {
color: #666;
text-decoration: underline;
}
/* Pandas dataframe css */
/* Taken from: https://github.com/spatialaudio/nbsphinx/blob/fb3ba670fc1ba5f54d4c487573dbc1b4ecf7e9ff/src/nbsphinx.py#L587-L619 */
table.dataframe {
border: none !important;
border-collapse: collapse;
border-spacing: 0;
border-color: transparent;
color: black;
font-size: .9em;
table-layout: fixed;
border-radius:6px;
}
table.datatable {
border-radius:6px;
}
table.dataframe thead {
border-bottom: 1px solid black;
vertical-align: bottom;
}
table.dataframe tr,
table.dataframe th,
table.dataframe td {
text-align: left;
vertical-align: middle;
padding: 0.5em 0.5em;
line-height: normal;
white-space: normal;
max-width: none;
border: none;
}
table.dataframe th {
font-weight: bold;
}
table.dataframe tbody tr:nth-child(odd) {
background: #f5f5f5;
}
table.datatable.display tbody tr:hover {
background-color: #ddd !important;
}
a.anchor:visited,
a.anchor:link {
padding-left: .2em;
color: #999;
}
div.dataTables_filter, div.dataTables_length {
padding: 20px;
}
.backtotop {
text-decoration: none;
display: flex;
position: fixed;
font-size: 50px;
right: 40px;
bottom: 40px;
align-items: center;
justify-content: center;
order: 2;
margin-left: auto;
z-index: 999;
}
.priority1 {
color: purple;
}
.priority2 {
color: firebrick;
}
.priority3 {
color: chocolate;
}
td.number {
text-align: right;
}
/* Style buttons */
.btn {
background-color: DodgerBlue; /* Blue background */
border: none; /* Remove borders */
color: white; /* White text */
padding: 12px 16px; /* Some padding */
font-size: 16px; /* Set a font size */
cursor: pointer; /* Mouse pointer on hover */
min-height: 46px;
/**
* Vertically align the icon and the text
* inside the button
*/
display: inline-flex;
flex-direction: row;
align-items: center;
justify-content: center;
order: 2;
margin-left: auto;
z-index: 999;
}
/* Style buttons */
.btn {
background-color: DodgerBlue; /* Blue background */
border: none; /* Remove borders */
color: white; /* White text */
padding: 12px 16px; /* Some padding */
font-size: 16px; /* Set a font size */
cursor: pointer; /* Mouse pointer on hover */
min-height: 46px;
/**
* Vertically align the icon and the text
* inside the button
*/
display: inline-flex;
flex-direction: row;
align-items: center;
}
/* Darker background on mouse-over */
.btn:hover {
background-color: RoyalBlue;
}
/* The main part of the page should adapt to the presence of the sidebar */
.main {
margin-left: 200px; /* same as sidebar width to avoid overlaps */
padding: 1px 16px;
height: 1000px;
}
.btn svg {
width: 1.5rem;
height: 1.5rem;
color: white;
}
/* Select all elements after any other element in a .btn */
.btn > * + * {
margin-left: 0.5rem;
}
#btn_subinfo:hover {
cursor: pointer;
}
#btn_subinfo svg {
width: 1rem;
height: 1rem;
}
/*----------------------------------------*/
/***** Stylesheet for the hover index *****/
/*----------------------------------------*/
/* Place rectangles in a grid */
.grid {
position: relative;
/* each rectangle is dependant of others */
margin: 0 auto;
padding: 1em 0 4em;
/* padding top horizontal bottom */
display: grid;
/* type of boxes generated */
max-width: 1000px;
list-style: none;
/* no item */
text-align: center;
column-gap: 2em;
/* space between columns */
}
/* Figure inside grid */
.grid figure {
position: relative;
float: left;
overflow: hidden;
/* overflow not taken into account */
margin: 10px 1%;
width: 100%;
/* 100% of the column */
background: #3085a3;
text-align: center;
cursor: pointer;
/* change shape cursor */
border-radius: 30px;
/* rounded corners */
}
/* Each figure contains an img */
.grid figure img {
position: relative;
display: block;
max-height: 100%;
max-width: 100%;
opacity: 1;
/* over a dummy image */
}
/* Style caption (title of benchmarks) */
.grid figure figcaption {
padding: 0.1em;
/* add space */
color: #fff;
/* writing color */
text-transform: uppercase;
/* title in uppercase */
font-size: 1.25em;
}
/* Small sized screens */
@media (min-width: 600px) {
.grid {
grid-template-columns: repeat(2, 1fr);
}
/* split in 2 columns */
}
/* Larger sized screens */
@media (min-width: 900px) {
.grid {
grid-template-columns: repeat(3, 1fr);
}
/* split in 3 columns */
}
/* Position and style of <a> elements (the View more) */
.grid figure figcaption,
.grid figure figcaption>a {
position: absolute;
top: 0em;
/* no space offset top */
left: 0;
width: 100%;
height: 100%;
}
/* only to figcaption <a> tag */
.grid figure figcaption>a {
z-index: 1000;
/* top level */
text-indent: 0%;
white-space: nowrap;
font-size: 0;
/* do not display the View more */
opacity: 1;
}
/* h2: Problem name (LASSO, ...) */
.grid figure h2 {
word-spacing: 0em;
font-weight: 300;
}
.grid figure h2 span {
font-weight: 800;
}
.grid figure h2,
.grid figure p {
margin: 0;
}
/* p: number of files */
.grid figure p {
letter-spacing: 1px;
font-size: 70%;
}
/* Default color */
figure.effect-ruby {
height: 150px;
background-color: #2c3e50;
}
/* Color when hovering */
figure.effect-ruby:hover {
background-color: DodgerBlue;
}
/* Define transformation */
figure.effect-ruby img {
opacity: 0;
transition: opacity 0.35s, transform 0.35s;
/* transition time */
transform: scale(1.15);
/* size transformation -> bigger */
}
/* transformation with hovering */
figure.effect-ruby:hover img {
opacity: 0;
transform: scale(1);
/* size -> smaller */
}
/* Apply effect to problem name */
figure.effect-ruby h2 {
margin-top: 0;
transition: transform 0.35s;
/* transition time */
transform: translate3d(0, calc((150px - 100%)/2), 0);
font-size: 1.25em;
/* default font */
}
figure.effect-ruby p {
margin: 2em -1em 2em -1em;
padding: 1em 0em 1em 0em;
border: 1px solid #fff;
/* create sort of white frame */
opacity: 0;
transition: opacity 0.35s, transform 0.35s;
transform: translate3d(0, 20px, 0) scale(1.1);
/* size transform */
}
/* Transform title on hover */
figure.effect-ruby:hover h2 {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0px, 10px, 0) scale(0.8);
/* smaller */
margin-top: 0em;
/* move up */
}
figure.effect-ruby:hover p {
opacity: 1;
transform: translate3d(0, 0, 0) scale(1.2);
/* placement in box */
}
/* Button for inside the table with system informations */
.buttoncent {
border: none;
background-color: transparent;
outline: none;
text-align: center;
}
/* button for inside text
in benchmark page above graph for system informations */
.buttonleft {
border: none;
background-color: transparent;
outline: none;
text-align: center;
margin-left: 1px;
/* add margin */
}
/* switch slider with an adaptable height.
Change switch-height and switch-padding, and all the dimensions are adjusted.
See https://stackoverflow.com/questions/70590125/how-to-change-the-size-of-a-css-toggle-switch */
* {
--switch-height: 20px;
--switch-padding: 2px;
--switch-width: calc((var(--switch-height) * 2) - var(--switch-padding));
--slider-height: calc(var(--switch-height) - var(--switch-padding));
--slider-on: calc(var(--switch-height) - var(--switch-padding));
}
.switch {
position: relative;
display: inline-block;
width: var(--switch-width);
height: var(--switch-height);
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
content: "";
position: absolute;
height: var(--slider-height);
width: var(--slider-height);
left: calc(var(--switch-padding) / 2);
bottom: calc(var(--switch-padding) / 2);
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked+.slider {
background-color: #2196F3;
}
input:focus+.slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked+.slider:before {
-webkit-transform: translateX(var(--slider-on));
-ms-transform: translateX(var(--slider-on));
transform: translateX(var(--slider-on));
}
.slider.round {
border-radius: var(--slider-height);
}
.slider.round:before {
border-radius: 50%;
}
/*----------------------------------------*/
/***** Brand text animated *****/
/*----------------------------------------*/
.ml11 .text-wrapper {
position: relative;
display: inline-block;
padding-top: 0.1em;
padding-right: 0.05em;
padding-bottom: 0.15em;
}
.ml11 .line {
opacity: 0;
position: absolute;
left: 0;
height: 100%;
width: 3px;
background-color: #fff;
transform-origin: 0 50%;
}
.ml11 .line1 {
top: 0;
left: 0;
}
.ml11 .letter {
display: inline-block;
line-height: 1em;
font-family: 'Kanit', sans-serif;
}
/*----------------------------------------*/
/***** Plot *****/
/*----------------------------------------*/
@media (min-width: 768px) {
#unique_plot {
flex: 1 1 0%;
}
}
@media (max-width: 767px) {
#unique_plot {
flex: initial;
flex-shrink: 0;
}
}
.js-plotly-plot .plotly .modebar {
transform: translateX(-30px);
}
/*----------------------------------------*/
/***** Custom legend *****/
/*----------------------------------------*/
#plot_legend {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
#legend_title {
font-size: 1.2rem;
font-weight: bold;
}
#legend_help {
font-size: 0.75rem;
color: #475569;
}
.space-r-2>* {
margin-right: 0.5rem;
}
.objective-description-content {
visibility: hidden;
background-color: rgb(55 65 81);
color: #fff;
border-radius: 6px;
margin-top: 1.5em;
padding-right: 0.5em;
padding-left: 0.5em;
padding-top: 1em;
padding-bottom: 1em;
opacity: 90%;
max-width: 80ch;
max-height: 200px;
overflow-y: auto;
white-space: pre-wrap;
position: absolute;
z-index: 99999;
}
.objective-description-trigger {
display: flex;
flex-direction: row;
}
.objective-description-icon {
width: 1.25rem;
align-self: center;
border-radius: 50%;
}
.objective-description-trigger:hover .objective-description-content {
visibility: visible;
}
/* Description solver when hovered */
.curve-description-container {
position: relative;
display: inline-flex;
}
.curve-description-content {
display: flex;
flex-direction: column;
visibility: hidden;
background-color: rgb(55 65 81);
color: #fff;
border-radius: 6px;
padding-top: 0.5em;
padding-bottom: 0.6em;
padding-left: 0.5em;
padding-right: 0.5rem;
opacity: 90%;
width: max-content;
max-width: 80ch;
max-height: 500px;
white-space: pre-wrap;
/* position description with respect to container and put it top-center */
position: absolute;
transform: translate(0, -100%);
z-index: 99999;
}
/* Show description when hovered */
.curve-description-container:hover .curve-description-content {
visibility: visible;
}
/*Arrow at the bottom of the description*/
.curve-description-container .curve-description-content::after {
content: " ";
position: absolute;
top: 100%;
left: 20px;
margin-left: -5px;
border-width: 7px;
border-style: solid;
border-color: rgb(55 65 81) transparent transparent transparent;
}
.curve-description-title {
margin-bottom: 1em;
font-weight: bolder;
}
.curve-description-body {
max-height: 450px;
overflow-y: auto;
}
/*Plot config styling as a bag of tags*/
#plot_config_title {
font-weight: bold;
}
.config-item, .config-ctrl {
border-radius: 9999px;
padding-left: 1em;
padding-right: 1em;
color: white;
margin-left: 2ex;
cursor: pointer;
/* font styles*/
font-size: 0.875rem;
line-height: 1.25rem;
font-weight: 400;
}
.config-item {
background-color: rgb(91, 78, 255);
border-color: rgb(55 65 81);
}
.config-ctrl {
font-size: medium;
font-weight: bold;
background-color: rgb(34, 30, 94);
border-color: rgb(23, 37, 59);
}
.view_selector_label {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.view_selector_select {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
background-position: right 0.5rem center;
background-repeat: no-repeat;
background-size: 1.5em 1.5em;
padding-right: 2.5rem;
-webkit-print-color-adjust: exact;
color-adjust: exact;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #fff;
border-width: 1px;
font-size: 1rem;
line-height: 1.5rem;
--tw-shadow: 0 0 #0000;
--tw-border-opacity: 1;
border-color: rgb(209 213 219 / var(--tw-border-opacity));
}
.view.active {
border-color: rgb(37 99 235);!important;
color: rgb(37 99 235);!important;
}
/* Hide q1, q3, max, min, upper fence, lower fence on boxplot */
g.hovertext:has(path + [data-unformatted*="q1"]),
g.hovertext:has(path + [data-unformatted*="q3"]),
g.hovertext:has(path + [data-unformatted*="max"]),
g.hovertext:has(path + [data-unformatted*="min"]),
g.hovertext:has(path + [data-unformatted*="upper fence"]),
g.hovertext:has(path + [data-unformatted*="lower fence"])
{
display: none;
}
/* Fixed aspect ratio for plot containers on mobile devices for better readability */
/* plot_with_legend_container is used for scatter plots and is always present */
/* Mobile portrait: Use taller aspect ratio to fill vertical space */
@media (max-width: 767px) and (orientation: portrait) {
#plot_with_legend_container {
aspect-ratio: 3 / 4; /* Taller aspect ratio for portrait */
min-height: 400px;
max-height: 70vh;
}
#plot_container.js-plotly-plot {
aspect-ratio: 3 / 4;
min-height: 400px;
max-height: 70vh;
}
}
/* Mobile landscape: Use wider aspect ratio */
@media (max-width: 767px) and (orientation: landscape) {
#plot_with_legend_container {
aspect-ratio: 4 / 3;
min-height: 300px;
max-height: 80vh; /* Use most of screen height in landscape */
}
#plot_container.js-plotly-plot {
aspect-ratio: 4 / 3;
min-height: 300px;
max-height: 80vh;
}
}
/* Desktop: Remove aspect ratio constraints for flexibility */
@media (min-width: 768px) {
#plot_with_legend_container {
aspect-ratio: auto;
min-height: 600px;
max-height: none;
}
#plot_container.js-plotly-plot {
aspect-ratio: auto;
min-height: 0;
max-height: none;
}
}
</style>
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" />
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js"></script>
<link href="https://cdn.datatables.net/1.10.22/css/jquery.dataTables.min.css" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="main" id="main" style="margin-left: 0;">
<a id="top"></a>
<h1>
<a href="benchmarks.html"><button class="btn"><i class="fa fa-home"></i></button></a>
Benchopt results: benchmarks
<a href="https://github.com/deep-inverse/benchmarks">
<i class="fab fa-github-square"></i>
</a>
</h1>
<p><em>Last updated: 2026-01-14 18:52</em>
with <strong>1</strong> result files in total. <br>
</p>
<div class="menu" style="padding-left: 0px;">
<label for=select_cpu style="padding-left: 20px; color: #333">
CPU
</label>
<select id=select_cpu onchange="change(['cpu', 'ram (GB)', 'cuda'])">
<option value=""> Any </option>
<option value="<b>cpu</b>: 32"> 32 </option>
</select>
<label for=select_ram(GB) style="padding-left: 20px; color: #333">
RAM (GB)
</label>
<select id=select_ram(GB) onchange="change(['cpu', 'ram (GB)', 'cuda'])">
<option value=""> Any </option>
<option value="<b>ram (GB)</b>: 63"> 63 </option>
</select>
<label for=select_cuda style="padding-left: 20px; color: #333">
CUDA
</label>
<select id=select_cuda onchange="change(['cpu', 'ram (GB)', 'cuda'])">
<option value=""> Any </option>
<option value="<b>cuda</b>: NVIDIA GeForce RTX 4090: cuda_12.4"> NVIDIA GeForce RTX 4090: cuda_12.4 </option>
</select>
</div>
<table class="summary display" id="summary">
<thead style="background-color: dodgerblue; color: white;">
<tr>
<th>Results</th>
<th>Datasets</th>
<th>System info</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td class="fname">
<a href="benchmarks_results.html">
benchmarks results
</a>
<input type="checkbox" name="checkfiles" data-result="results.parquet" data-html="benchmarks_results.html" style="display:none;">
</td>
<td class="datasets">
<ul style="list-style-type: none; margin-top: 0;">
<div class=dataset>
Div2k
<li><span style="font-size: 80%;padding-left:15px;padding-bottom:5px;">debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1 </span> </li>
</div>
</ul>
</td>
<td class="sysinfo">
<ul style="list-style-type: none; margin-top: 0;">
<li>
<b>CPU</b>: 32
<button data-idx=0 id=btn_subinfo0 class="button buttoncent" style="float:right;">
<i class='fas fa-plus-circle'></i>
</button>
</li>
<li>
<b>RAM (GB)</b>: 63
</li>
<li>
<b>CUDA</b>: NVIDIA GeForce RTX 4090: cuda_12.4
</li>
<!--Case where sub infos are available but somehow main infos are not-->
<div id=subinfo0 style="display:none;">
<li>
<b>platform</b>: Linux6.12.43+deb13-amd64-x86_64
</li>
<li>
<b>processor</b>: AMD Ryzen Threadripper 1950X 16-Core Processor
</li>
</div>
</ul>
</td>
<td class="buttons" style='text-align: center'>
<a href="benchmarks_results.html">
<button class="btn"><i class="fas fa-chart-line"></i></button>
</a>
<a href="results.parquet">
<button class="btn"><i class="fa fa-download"></i></button>
</a>
</td>
</tr>
</tbody>
</table>
<div id="dialogRm" hidden="hidden"> dialog text </div>
<button class="btn" id="trashBtn" style="display:none;float:right;"><i class="fa fa-trash"></i></button>
<a class="backtotop" title="Back to top" href="#top" style="z-index: 50;"><i class="fas fa-level-up-alt"></i></a>
</div>
<script type="text/javascript">
/*********************************************
* JS functions for the benchmark page.
*********************************************/
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Format the table once the page has been loaded.
* - Order the table based on run date.
* - Add trash button if it is a local file
* - Hide sysinfo if the column is empty
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
$(function () {
// Sort the table by descending date order (date being in column 0)
$(".summary").dataTable({
order: [[0, "desc"]],
}); // reorder table by date
//Add trash button if this is a local document
if (location.hostname === "") {
$("[name='checkfiles']").css({
// only show lines that not hidden by user
display: "block",
"margin-left": "auto",
float: "left",
}); // display checkboxes
$("#trashBtn").css({
display: "block",
float: "left",
"margin-bottom": "5vh",
});
}
// Hide the system information column if it is empty
$("table").each(function (a, tbl) {
var currentTableRows = $(tbl).find("tbody tr").length;
$(tbl)
.find("th") // also take care of table head
.each(function (i) {
var remove = 0;
var currentTable = $(this).parents("table");
var tds = currentTable.find("tr td:nth-child(" + (i + 1) + ")");
tds.each(function (j) {
if ($(this)[0].innerText.length == 0) remove++;
});
if (remove == currentTableRows) {
$(this).hide();
tds.hide();
}
});
});
});
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Callback for the side bar select box.
* Filter the benchmark runs in the table
* based on the current selected values
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
function change(ll_item) {
var td, i, fil;
var filter = new Array();
for (item = 0; item < ll_item.length; item++) {
filter.push(
document
.getElementById("select_" + ll_item[item].replace(/\s/g, ""))
.value.toUpperCase()
); // Add dropdown value on top of the array (order is necessary)
}
var table = document.getElementById("summary");
var tr = table.getElementsByTagName("tr");
for (i = 0; i < tr.length; i++) {
tr[i].style.display = "";
td = tr[i].getElementsByTagName("td")[2];
if (td) {
// do not display elements from table not in filter
for (fil = 0; fil < filter.length; fil++) {
if (
td.innerHTML.toUpperCase().indexOf(filter[fil]) > -1 &&
tr[i].style.display !== "none"
) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
}
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Callback for the +/- button of system-info.
* Display sub info in the table.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
$(function () {
$(".button.buttoncent").click(displayMore);
});
function displayMore() {
var loop_index = $(this).attr("data-idx");
var x = document.getElementById("subinfo" + loop_index);
$(this).find("svg").toggleClass("fa-plus-circle fa-minus-circle");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Launch a dialog box to hide rows in table or
* get the files checked by user in local rendering.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
$(function () {
$("#dialogRm").dialog({
autoOpen: false, // only open when needed
});
// click on delete button in the dialog box
$("#trashBtn").click(trashIconDialog);
});
// copy content from trash dialog box in clipboard
function clipboardCopy() {
navigator.clipboard.writeText($("#dialogRm").text());
}
// remove rows with checked checkboxes until refresh
function hideRows(allChecked) {
for (check of allChecked) {
$(check).closest("tr").remove();
}
}
// open dialog to get paths of checked files and/or hide table rows
function trashIconDialog() {
// get files with checheck checkbox
allChecked = document.querySelectorAll("input[name=checkfiles]:checked");
delCmd = "rm \\\n <br />"; // n and br for html and copy to clipboard
for (check of allChecked) {
delCmd += $(check).attr("data-result") + " \\\n <br />";
delCmd += $(check).attr("data-html") + " \\\n <br />";
}
delCmd += "cache_run_list.json"; // add the cache file
$("#dialogRm").html(delCmd); // modify the content in the html file
$("#dialogRm") // dialog box
.dialog({
title: "Remove selected entries",
modal: true,
draggable: true, // the user can move it
resizable: false, // but not resize it
width: "auto",
buttons: {
"Copy to clipboard": clipboardCopy,
"Hide row": hideRows.bind(null, allChecked), // binder to use params
},
})
.dialog("open"); // open dialog box on click
}
</script>
</body>
</html>