Skip to content

valango/iterations-benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascript iterations benchmark

Comparing performance of different looping patterns.

Usage

Just install the dependencies and type: node . or yarn bench or npm run bench.

Use command line argument 't' for using a typed array instead of a generic one: node . t

The result will (hopefully) look something like this:

PNG file

Adding your own benchmarks

Just add your code module into benchmarks/ directory.

The module has to export a function receiving an array of integer values and an optional size limit argument. The function has to return a bitwise xor of array elements.

In the report generated, the underscore characters in file names are changed to whitespaces.

About

Ever been thinking that your nice elegant code may actually run way too slow? Here is a tool to check it out.

Topics

Resources

License

Stars

Watchers

Forks

Contributors