benchmark

master
Aevann 2023-10-27 10:16:41 +03:00
parent 1dbae589bb
commit c0c3b248e0
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,7 @@ const emojisSearchDictionary = {
// get public emojis list // get public emojis list
function fetchEmojis() { function fetchEmojis() {
const t = Date.now() / 1000
const headers = new Headers({xhr: "xhr"}) const headers = new Headers({xhr: "xhr"})
return fetch("/emojis.json", { return fetch("/emojis.json", {
headers, headers,
@ -242,6 +243,8 @@ function fetchEmojis() {
emojiSearchBarDOM.disabled = false; emojiSearchBarDOM.disabled = false;
emojiEngineState = "ready"; emojiEngineState = "ready";
console.log(Date.now() / 1000 - t)
}) })
} }