reuse encoder and add base benchmark
Merge pull request #22 from node-modules/benchmark

reuse encoder and add base benchmark