Skip to content

RamuRChenchaiah/benchmark-nodejs-typedarray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

benchmark-nodejs-typedarray

How to run the tests?

clone the code from https://github.com/RamuRChenchaiah/benchmark-nodejs-typedarray.git
cd 'benchmark-nodejs-typedarray'
do 'npm install'
run './bin/www'

Note :

If you are using windows, use 'git bash' to run the above commands

Article reference:

https://www.linkedin.com/pulse/node-js-version-4-typedarray-performance-ramu-chenchaiah?trk=prof-post

Brief


TypedArrays are good if you want to allocate a long-living array with a certain type and size.

Regular arrays are better if you want to create temporary arrays often.

Test Results:

https://github.com/RamuRChenchaiah/benchmark-nodejs-typedarray/blob/master/test-results/array-Vs-TypedArray.PNG?raw=true

Machine details:

8GB RAM

https://github.com/RamuRChenchaiah/benchmark-nodejs-typedarray/blob/master/test-results/machine-details.PNG?raw=true

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published