added benchmark.js to measure performance improvements while investigating #595
Merge pull request #616 from bitovi/attribute-benchmarks

benchmark.js and minor performance improvements