🚀 benchmark ?

This commit is contained in:
platane
2020-10-06 23:53:46 +02:00
committed by Platane
parent b0784fbaca
commit 16a47349be
10 changed files with 181 additions and 11 deletions

View File

@@ -0,0 +1,21 @@
import * as grid from "@snk/compute/__fixtures__/grid";
const container = document.createElement("div");
container.style.fontFamily = "helvetica";
document.body.appendChild(container);
for (const demo of ["getAvailableRoutes", "getBestRoute"]) {
const title = document.createElement("h1");
title.innerText = demo;
container.appendChild(title);
for (const g of Object.keys(grid)) {
const a = document.createElement("a");
a.style.display = "block";
a.innerText = `${demo} - ${g}`;
a.href = `/demo-${demo}.html?grid=${g}`;
container.appendChild(a);
}
}