Sign in
chromium
/
external
/
github.com
/
v8
/
node
/
refs/heads/fuchsia
/
.
/
benchmark
/
process
/
memoryUsage.js
blob: 1c743d81f1f465cd3bc4df806903268a42d84c51 [
file
] [
log
] [
blame
]
'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
);
}