const replacer = require('../lib/replacer'),
      freqAnalyzer = require('../lib/replacer/freqAnalyzer'),
      styleParser = require('../lib/parsers/styleParser'),
      v8 = require('v8-natives');

function getData() {
  return {
    style: {
      path: 'somepath.css',
      size: '',
      content: '.div {} div {}'
    },
    files: [
      {
        path: 'somepath.js',
        size: '',
        content: 'fn(".div");'
      }
    ]
  }
}
const data = getData(),
      data1 = getData(),
      selectors = styleParser(data.style.content),
      selectorsData = freqAnalyzer(
        selectors,
        data,
        {unused: false, exclude: []}
      )

replacer(selectorsData, data)
v8.optimizeFunctionOnNextCall(replacer)
replacer(selectorsData, data1)
v8.helpers.printStatus(replacer)
@@ -434,16 +434,67 @@
  %7D%0A    %5D
+,%0A    report: %7B%0A      unusedSelectorsCount: 0%0A    %7D
 %0A  %7D%0A%7D%0Ac

Fix perf test