Skip to content

Commit

Permalink
fix: time ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
poyoho committed Feb 6, 2022
1 parent fb34389 commit 3b12b5c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/playground/json/index.ssr.html
Expand Up @@ -10,12 +10,13 @@
</div>

<script type="module">
const start = Date.now()
const startModule = Date.now()
text('.fetch-json-module pre', await (await fetch('/json-module')).text())
text('.fetch-json-module code', Date.now() - start)
text('.fetch-json-module code', Date.now() - startModule)

const startFs = Date.now()
text('.fetch-json-fs pre', await (await fetch('/json-fs')).text())
text('.fetch-json-fs code', Date.now() - start)
text('.fetch-json-fs code', Date.now() - startFs)
function text(sel, text) {
document.querySelector(sel).textContent = text
}
Expand Down

0 comments on commit 3b12b5c

Please sign in to comment.