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 = [];
1717const N = 250000 ;
1818
1919const server = net . createServer ( common . mustCall ( ( socket ) => {
20- baseRSS = process . memoryUsage ( ) . rss ;
20+ baseRSS = process . memoryUsage . rss ( ) ;
2121
2222 socket . setNoDelay ( true ) ;
2323 socket . on ( 'data' , ( chunk ) => {
@@ -38,7 +38,7 @@ const server = net.createServer(common.mustCall((socket) => {
3838process . on ( 'exit' , ( ) => {
3939 global . gc ( ) ;
4040 const bytesPerChunk =
41- ( process . memoryUsage ( ) . rss - baseRSS ) / receivedChunks . length ;
41+ ( process . memoryUsage . rss ( ) - baseRSS ) / receivedChunks . length ;
4242 // We should always have less than one page (usually ~ 4 kB) per chunk.
4343 assert ( bytesPerChunk < 650 , `measured ${ bytesPerChunk } bytes per chunk` ) ;
4444} ) ;
You can’t perform that action at this time.
0 commit comments