Skip to content
This repository was archived by the owner on Jun 25, 2021. It is now read-only.

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comparejs

Compare features and performance of similar js libraries (not just stats)

How to add performance tests for new js library

  1. Go to tests folder
  2. Add a test js file similar to below code;
var Benchmark = require('benchmark');


var id = "sample001"; //Manadatory
var suite = new Benchmark.Suite(id);
// add tests 
suite.add('RegExp#test', function() {
  /o/.test('Hello World!');
})
.add('String#indexOf', function() {
  'Hello World!'.indexOf('o') > -1;
})

module.exports = suite
  1. Add profile entry
  2. Add dev dependency in package.json (if any)
  3. run npm run benchmarktest
  4. check if a new file is generated in reports folder

About

Compare features and performance of similar js libraries (not just stats)

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages