Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ relativePath
Function
relativePath
benchmark/fs/bench-realpath.js:23–31 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
21
}
22
23
function
relativePath(n) {
24
(
function
r(cntr) {
25
if
(cntr-- <= 0)
26
return
bench.end(n);
27
fs.realpath(relative_path, () => {
28
r(cntr);
29
});
30
}(n));
31
}
32
33
function
resolvedPath(n) {
34
(
function
r(cntr) {
Callers
1
main
Function · 0.70
Calls
3
r
Function · 0.50
end
Method · 0.45
realpath
Method · 0.45
Tested by
no test coverage detected