getBenchmarksPaths: function(treeishPath, levelPath) { var self = this, level = LEVEL.createLevel(PATH.join(treeishPath, levelPath)), benchmarks; if (self.benchmarks && self.benchmarks.length) { // if -b flag detected then compare not all benchmarks benchmarks = U.arrayUnique(self.benchmarks) .map(function(b) { return U.bemParseKey(b); }); } else { // if -b flag not detected then all benchmarks benchmarks = level.getItemsByIntrospection() .filter(function(item) { return item.tech === 'bemjson.js'; }); } return benchmarks .map(function(benchmark) { return level.getPathByObj(benchmark, 'bemjson.js'); }); },