Benchmark: updated stmd implementation