Open this example in the interactive library
Source code
import {
performance,
createHistogram,
PerformanceObserver,
} from "node:perf_hooks";
console.log(performance.mark("load", { detail: { count: 2 } }).detail);
Sample output
{ count: 2 }
Open this example in the interactive library
import {
performance,
createHistogram,
PerformanceObserver,
} from "node:perf_hooks";
console.log(performance.mark("load", { detail: { count: 2 } }).detail);
{ count: 2 }