yunofast
super light benchmarking tool designed to leave in long running server code.
example
var bench = var b = ; var c = 0;{ c++; bstart'test'; ; };
api
bench()
- returns new benchmark object
bench.start(key)
- start a timer for key
bench.end(key) / bench.stop(key)
- stop a timer for a key
bench.report()
- return a summary report of all keys
bench.remove(key)
- drop all marks for key
report output
test: count: 60 avg: 005 slidingAvg: 00682593545 total: 3 906278613
woo hoo
let me know if you have any issues or this is useful.