Skip to content

ip413/node-read-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test for memory management of fs module, for async and sync read

  • Memory could be measured with:

watch -n 1 'pmap -p \$(pgrep node) | tail -n -1 | cut -c 10- | tee -a result.txt'

or

top | watch node

  • Run test with:

npm start

  • Test has no npm dependencies.

  • Switch between sync, async, number of read directly in code.

  • WARNING: 10^5 async reads could consume 12GB of memory, so be careful with numbers.

  • Results for node 6 and 12:

  • Results for different amount of reads, node 6.17.1:

  • Results for different file size (10, 20, 40, 80 KB)

  • Results for very log wait - 1 hour

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published