Optimise performance

I also added `test/bench.html`.