add domBenchmark (mostly written by Tapani)