forked from MarseyWorld/MarseyWorld
more benchmarking
parent
c0c3b248e0
commit
63992659fc
|
@ -154,13 +154,13 @@ 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,
|
||||||
})
|
})
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then(emojis => {
|
.then(emojis => {
|
||||||
|
const t = Date.now() / 1000
|
||||||
if (! (emojis instanceof Array ))
|
if (! (emojis instanceof Array ))
|
||||||
throw new TypeError("[EMOJI DIALOG] rDrama's server should have sent a JSON-coded Array!");
|
throw new TypeError("[EMOJI DIALOG] rDrama's server should have sent a JSON-coded Array!");
|
||||||
|
|
||||||
|
@ -170,6 +170,8 @@ function fetchEmojis() {
|
||||||
|
|
||||||
const bussyDOM = document.createElement("div");
|
const bussyDOM = document.createElement("div");
|
||||||
|
|
||||||
|
console.log(Date.now() / 1000 - t)
|
||||||
|
|
||||||
for(let i = 0; i < emojis.length; i++)
|
for(let i = 0; i < emojis.length; i++)
|
||||||
{
|
{
|
||||||
const emoji = emojis[i];
|
const emoji = emojis[i];
|
||||||
|
|
Loading…
Reference in New Issue