Skip to content
Snippets Groups Projects
Commit d98c8e48b612 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

web-ui: dynamic loading

parent ef0deab96392
No related branches found
No related tags found
No related merge requests found
Pipeline #55420 skipped
<script lang="ts">
import Benchmark from "./lib/Benchmark.svelte";
import allResults from "../../results-new.json";
/**
* Group results as expected by `Benchmark`
*/
......@@ -21,9 +19,13 @@
<main>
<h1>Poulpe!</h1>
{#each Object.entries(allResults) as [name, results]}
<h2>{name}</h2>
{#each Object.entries(groupResults(results)) as [flavor, results]}
<h3>Flavor: {flavor}</h3>
<Benchmark {results} />
{#await import("../../results-new.json")}
<h2>Loading...</h2>
{:then allResults}
{#each Object.entries(allResults.default) as [name, results]}
<h2>{name}</h2>
{#each Object.entries(groupResults(results)) as [flavor, results]}
<h3>Flavor: {flavor}</h3>
<Benchmark {results} />
{/each}
{/each}
......@@ -29,5 +31,5 @@
{/each}
{/each}
{/await}
</main>
<style>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment