You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
Hi,
I know that benchmark will let me run several things together in async. It can check the times and who is the fastest and slowest.
But how can I output each time (in milliseconds or seconds... ect) for each function? I'd like to know the average time for each function takes? I didn't find anything in the API document..... Maybe you can guide me there?
Reguards!
The text was updated successfully, but these errors were encountered:
PS:Until now I have to do something like this following, maybe not good:
.on('complete', function () {
let results = new Array();
for (let prop in this) {
if (!isNaN(prop)) {
const eachResult = {
name: this[prop].name,
mean: this[prop].stats.mean,
moe: this[prop].stats.moe,
rme: this[prop].stats.rme,
sem: this[prop].stats.sem
}
results.push(eachResult);
}
}
results = results.sort((a, b) => { return a.mean - b.mean });
console.log(`Rand\tName\t\tTime (in seconds)`);
let id = 1;
for (let r of results) {
console.log(`${id++}\t${r.name}\t\t${r.mean.toFixed(3)}`);
}
})
Is there anyway special or direct?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I know that benchmark will let me run several things together in async. It can check the times and who is the fastest and slowest.
But how can I output each time (in milliseconds or seconds... ect) for each function? I'd like to know the average time for each function takes? I didn't find anything in the API document..... Maybe you can guide me there?
Reguards!
The text was updated successfully, but these errors were encountered: