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

Function measure

benchmark/crypto/create-keyobject.js:53–59  ·  view source on GitHub ↗
(n, fn, input)

Source from the content-addressed store, hash-verified

51});
52
53function measure(n, fn, input) {
54 bench.start();
55 for (let i = 0; i < n; ++i) {
56 fn(input);
57 }
58 bench.end(n);
59}
60
61function main({ n, keyFormat, keyType }) {
62 const keyPair = {

Callers 1

mainFunction · 0.70

Calls 3

fnFunction · 0.50
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…