File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const receivedChunks = [];
17
17
const N = 250000 ;
18
18
19
19
const server = net . createServer ( common . mustCall ( ( socket ) => {
20
- baseRSS = process . memoryUsage ( ) . rss ;
20
+ baseRSS = process . memoryUsage . rss ( ) ;
21
21
22
22
socket . setNoDelay ( true ) ;
23
23
socket . on ( 'data' , ( chunk ) => {
@@ -38,7 +38,7 @@ const server = net.createServer(common.mustCall((socket) => {
38
38
process . on ( 'exit' , ( ) => {
39
39
global . gc ( ) ;
40
40
const bytesPerChunk =
41
- ( process . memoryUsage ( ) . rss - baseRSS ) / receivedChunks . length ;
41
+ ( process . memoryUsage . rss ( ) - baseRSS ) / receivedChunks . length ;
42
42
// We should always have less than one page (usually ~ 4 kB) per chunk.
43
43
assert ( bytesPerChunk < 650 , `measured ${ bytesPerChunk } bytes per chunk` ) ;
44
44
} ) ;
You can’t perform that action at this time.
0 commit comments