Sign in
chromium
/
external
/
github.com
/
v8
/
node
/
refs/heads/node-ci-2025-03-10
/
.
/
benchmark
/
process
/
memoryUsage.js
blob: 1df73db2ea4f38030b5a17e0d1d7382b3031f850 [
file
] [
log
] [
blame
] [
edit
]
'use strict'
;
const
common
=
require
(
'../common.js'
);
const
bench
=
common
.
createBenchmark
(
main
,
{
n
:
[
1e5
],
});
function
main
({
n
})
{
bench
.
start
();
for
(
let i
=
0
;
i
<
n
;
i
++)
{
process
.
memoryUsage
();
}
bench
.
end
(
n
);
}