MCPcopy Index your code
hub / github.com/nodejs/node / testFastMethods

Function testFastMethods

test/parallel/test-perf-hooks-histogram-fast-calls.js:11–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const histogram = require('perf_hooks').createHistogram();
10
11function testFastMethods() {
12 histogram.record(1);
13 histogram.recordDelta();
14 histogram.percentile(50);
15 histogram.reset();
16}
17
18eval('%PrepareFunctionForOptimization(histogram.record)');
19eval('%PrepareFunctionForOptimization(histogram.recordDelta)');

Calls 4

recordDeltaMethod · 0.80
percentileMethod · 0.80
recordMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…