How to compare performance of two pieces of codes
问题 I have a friendly competition with couple of guys in the field of programming and recently we have become so interested in writing efficient code. Our challenge was to try to optimize the code (in sense of cpu time and complexity) at any cost (readability, reusability, etc). The problem is, now we need to compare our codes and see which approach is better comparing to the others but we don't know any tools for this purpose. My question is, are there some (any!) tools that takes a piece of