better benchmarking

master
Aevann 2023-10-27 10:56:34 +03:00
parent 63992659fc
commit 4bc4a7cbbf
1 changed files with 4 additions and 5 deletions

View File

@ -160,7 +160,6 @@ function fetchEmojis() {
})
.then(res => res.json())
.then(emojis => {
const t = Date.now() / 1000
if (! (emojis instanceof Array ))
throw new TypeError("[EMOJI DIALOG] rDrama's server should have sent a JSON-coded Array!");
@ -170,8 +169,6 @@ function fetchEmojis() {
const bussyDOM = document.createElement("div");
console.log(Date.now() / 1000 - t)
for(let i = 0; i < emojis.length; i++)
{
const emoji = emojis[i];
@ -245,8 +242,6 @@ function fetchEmojis() {
emojiSearchBarDOM.disabled = false;
emojiEngineState = "ready";
console.log(Date.now() / 1000 - t)
})
}
@ -447,6 +442,8 @@ function populate_speed_emoji_modal(results, textbox)
function update_speed_emoji_modal(event)
{
const t = Date.now() / 1000
const box_coords = update_ghost_div_textarea(event.target);
box_coords.x = Math.min(box_coords.x, screen_width - 150)
@ -490,6 +487,8 @@ function update_speed_emoji_modal(event)
const found = globalEmojis.filter(i => resultSet.has(i.name));
populate_speed_emoji_modal(found, event.target);
console.log(Date.now() / 1000 - t)
});
}
else {