Skip to content

Commit

Permalink
Add performance testing utility
Browse files Browse the repository at this point in the history
  • Loading branch information
awwright committed Aug 4, 2017
1 parent e979ac5 commit 7aaa5d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var padlen = 7;
var padlen = 0; // To be updated later as necessary
var ratelen = 9;
function pus(name, start, cyc){
var end = process.hrtime(start);
Expand All @@ -24,11 +24,11 @@ function compareJSONParsedObject(a, b){
}

var testRouters = {
control: require('./route.js').Router,
// range: require('./route-range.js').Router,
// range2: require('./route-range2.js').Router,
// range3: require('./route-range3.js').Router,
// range4: require('./route-range4.js').Router,
control: require('./route.js').Router,
};
padlen = Math.max.apply(null, Object.keys(testRouters).map(function(v){ return v.length; }));

Expand Down

0 comments on commit 7aaa5d1

Please sign in to comment.