Skip to content

Commit

Permalink
[web] update benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
eaicardi committed Feb 22, 2024
1 parent 21fe918 commit 4dc242c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 16 deletions.
31 changes: 21 additions & 10 deletions docs/assets/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -505,26 +505,37 @@ header .language-switcher input:checked + label {
background-color: var(--color-gray);
}

.benchs article div:nth-child(2)::before {
width: 51.8%;
content: "~259ms";
/* 500ms base reference */
.benchs article div.solid::before {
width: 37.6%;
content: "~188ms";
background-color: #436a9e;
}
.benchs article div.vif::before {
width: 51.6%;
content: "~258ms";
background-color: var(--color-secondary);
}
.benchs article div:nth-child(4)::before {
width: 76.4%;
content: "~382ms";
background-color: #324fff;
}
.benchs article div:nth-child(6)::before {
.benchs article div.vue::before {
width: 53.8%;
content: "~269ms";
background-color: #42b883;
}
.benchs article div:nth-child(8)::before {
.benchs article div.alpine::before {
width: 67.6%;
content: "~338ms";
background-color: #48a9c1;
}
.benchs article div.lit::before {
width: 76.4%;
content: "~382ms";
background-color: #324fff;
}
.benchs article div.preact::before {
width: 87.2%;
content: "~436ms";
background-color: #673ab8;
}

/* INSTALLATION SECTION */

Expand Down
15 changes: 9 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -427,16 +427,19 @@ <h2 x-text="t().benchs.title">But what about speed ?</h2>
<article>
<!-- Vif -->
<p>Vif</p>
<div class="chart"></div>
<!-- Lit -->
<p>Lit</p>
<div class="chart"></div>
<div class="chart vif"></div>
<!-- Vue -->
<p>Vue</p>
<div class="chart"></div>
<div class="chart vue"></div>
<!-- Alpine -->
<p>Alpine</p>
<div class="chart"></div>
<div class="chart alpine"></div>
<!-- Lit -->
<p>Lit</p>
<div class="chart lit"></div>
<!-- Preact -->
<p>Preact</p>
<div class="chart preact"></div>
</article>

<p class="sub-title">
Expand Down

0 comments on commit 4dc242c

Please sign in to comment.