This is a simple js program (that you need to run with node.js). It will take an array and put it through different sorting algorithms and tell you how much comparaisons he's done.
To run this program you need to type in your terminal at the root of the folder: node counter.js list.json Where list can be any json file containing an array of numbers