added expected result & nodeunit test
added perf