Skip to content

Commit

Permalink
fixing all of the things
Browse files Browse the repository at this point in the history
  • Loading branch information
soldair committed Sep 19, 2012
1 parent 0f3e449 commit a64997f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench.js
Expand Up @@ -2,10 +2,10 @@ module.exports = function() {
return {
marks:{},
start:function(key){
this.mark(key,1);
this._mark(key,1);
},
end:function(key){
this.mark(key,0);
this._mark(key,0);
},
report:function(){
var z = this;
Expand Down
1 change: 1 addition & 0 deletions test/test.js
Expand Up @@ -14,6 +14,7 @@ test("test can benchmark",function(t){
if(c < 60) fn();
else {
var report = b.report();
console.log(report);
t.equals(report['test'].count,60,"should have measured 10 samples");
t.ok(report['test'].avg > 0.01,'should have good avg');
t.ok(report['test'].slidingAvg > 0.01,'should have good sliding avg');
Expand Down

0 comments on commit a64997f

Please sign in to comment.