[Compass-ci] [PATCH v2 compass-ci 1/2] lib/compare_matrixes.rb: refactor performance optimization