benchmark: javadoc and DRY'ing