Moved the logic to calculate all the stats in order to remove the benchmark.js dependency asap