In addition to time measure, it may be interesting to measure the memory overhead. What tool or method to use, preferably portable across Linux (GCC, clang) and Windows (VS2010/2012)