optimizations and performance tuning
new file doc/benchmark.md