I've just set up my new PC, and I want to compare CPU speed to my MacBook Air using some simple program. I've already used Python timeit
module, but I wonder, what function will produce more representative result for the problem. (some simple arithmetic stuff, or some linear algebra operations, etc.)
For example:
python -m timeit '"-".join([str(n) for n in range(100)])'
gives a result of 25.7 msec
per loop on MBA and 12 msec
per loop on PC.