DescriptiveStatistics ds = new DescriptiveStatistics();
for (int i = 0; i < 10; ++i) { //Each random sum repeatedly tested 1000 times
Sum[] sums_ = new Sum[]{sums[0].clone(), sums[1].clone()};
long start = System.nanoTime();
PairEC pec = new PairEC(sums_[0], sums_[1], NaiveSumCollectIP.FACTORY, ScalarsSplitter.INSTANCE, threads);
Sum res = (Sum) pec.result();
// System.out.println(res.size() + " " + res);
ds.addValue(System.nanoTime() - start);
}
stats[threads - 1] = ds; //Saving statistics for one thread