add scoped timer to similarity calculation