perf test
parent
48ebc3af5a
commit
45d54ca874
|
@ -62,10 +62,10 @@ exports.start = async () => {
|
||||||
|
|
||||||
// Performance stats gauges
|
// Performance stats gauges
|
||||||
// We use gauges because a reload might replace the value
|
// We use gauges because a reload might replace the value
|
||||||
stats.gauge('npmLoadDuration', () => postNpmLoad);
|
stats.gauge('npmLoadDuration', () => npmLoadDuration);
|
||||||
const preNpmLoad = Date.now() - stats.startTime;
|
const preNpmLoad = Date.now();
|
||||||
await util.promisify(npm.load)();
|
await util.promisify(npm.load)();
|
||||||
const npmLoadDuration = Date.now() - stats.startTime;
|
const npmLoadDuration = Date.now() - preNpmLoad;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
stats.gauge('dbInitDuration', () => dbInitDuration);
|
stats.gauge('dbInitDuration', () => dbInitDuration);
|
||||||
|
|
Loading…
Reference in New Issue