Permalink
Browse files

fixed bug in stop due to renamed method

  • Loading branch information...
1 parent 7ca890a commit 6df4ce17f64d726f7d5e3ee75491490459c3e2af @soldair committed Sep 19, 2012
Showing with 6 additions and 5 deletions.
  1. +5 −4 bench.js
  2. +1 −1 package.json
View
@@ -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 = {};
@@ -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};
View
@@ -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":{

0 comments on commit 6df4ce1

Please sign in to comment.