Skip to content

koresar/bench-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Various ready-to-go node performance scripts

How to run

Clone this repo.

git clone https://github.com/koresar/bench-node.git

Install dependencies:

cd bench-node
npm i

Run a test on your current Node.js version

Copy one of the lines below and execute in a shell:

node filter/1.js
node filter/2.js
node filter/3.js
node filter/4.js
node filter/5.js
node map/1.js
node map/2.js
node map/3.js
node map/4.js
node map/5.js
node flatten/1.js
node flatten/2.js
node clone/1.js
node clone/2.js
node throw/1.js
node args/1.js
node JSON.parse/1.js

Run a test on the several Node.js versions

Install nvm. Restart your shell. Install node versions 0.10, 0.12, 4, 6, 8, 10, 12, 14, 16.

for v in 0.10 0.12 4 6 8 10 12 14 16; do nvm install $v; done

Run the test under several Node.js versions like so:

./all_nodes.sh args/1.js

See the list of tests above.

About

Benchmarking node scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages