[Examples, Benchmark] Improve benchmark utils
This PR improves the `benchmarks.py` file a bit:
- "results, memory" are renamed to "time, memory" 
- all print statements can optionally be saved in a log file
- the CSV file output format is improved
- better naming in general