Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing all of the things

  • Loading branch information...
commit a64997fc7cebdac3d20744c7b1e01b18a270f74a 1 parent 0f3e449
@soldair authored
Showing with 3 additions and 2 deletions.
  1. +2 −2 bench.js
  2. +1 −0  test/test.js
View
4 bench.js
@@ -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;
View
1  test/test.js
@@ -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');
Please sign in to comment.
Something went wrong with that request. Please try again.