added measuring similarity calculation runtime