Skip to content

Commit

Permalink
Adding total resolution time
Browse files Browse the repository at this point in the history
  • Loading branch information
beta-ziliani committed Dec 31, 2024
1 parent d404e11 commit 482fa88
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ async function testFile(file: string) {
}

const totalTime = round(performance.now() - startTime);
const resolutionTime = totalTime - buildGraphTime - setupTime;
const maxGoto = round(max(gotoDefTimes));
const meanGoto = round(mean(gotoDefTimes));
const stdGoto = round(std(gotoDefTimes));
console.log(`file: ${file}\n\trefs: ${refs}\tdefs: ${defs}\tneither: ${neitherDefNorRef}\tambiguous: ${ambiguousRefs}\tempty refs: ${emptyRef}\n\ttotal time: ${totalTime}ms\tsetup: ${setupTime}ms\tbuild: ${buildGraphTime}ms\tmax: ${maxGoto}ms\tmean: ${meanGoto}ms\tstd: ${stdGoto}ms`);
console.log(`file: ${file}\n\trefs: ${refs}\tdefs: ${defs}\tneither: ${neitherDefNorRef}\tambiguous: ${ambiguousRefs}\tempty refs: ${emptyRef}\n\ttotal time: ${totalTime}ms\tsetup: ${setupTime}ms\tbuild: ${buildGraphTime}ms\tresolution: ${resolutionTime}ms\tmax: ${maxGoto}ms\tmean: ${meanGoto}ms\tstd: ${stdGoto}ms`);
}

0 comments on commit 482fa88

Please sign in to comment.