Navigation Menu

Skip to content

Commit

Permalink
fixed bug in stop due to renamed method
Browse files Browse the repository at this point in the history
  • Loading branch information
soldair committed Sep 19, 2012
1 parent 7ca890a commit 6df4ce1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions bench.js
Expand Up @@ -7,6 +7,10 @@ module.exports = function() {
end:function(key){
this._mark(key,0);
},
// alias for end
stop:function(key){
this._mark(key,0);
},
report:function(){
var z = this;
var report = {};
Expand All @@ -32,10 +36,7 @@ module.exports = function() {
remove:function(key){
delete this.marks[key];
},
// alias for end
stop:function(key){
this.mark(key,0);
},

_mark:function(key,on){
if(!this.marks[key]) this.marks[key] = {start:false,total:[0,0],count:0,samples:[],cps:0};

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "yunofast",
"version": "0.0.0",
"version": "0.0.1",
"description": "super light benchmarking tool designed to leave in long running server code.",
"main": "bench.js",
"devDependencies":{
Expand Down

0 comments on commit 6df4ce1

Please sign in to comment.