Improved perf_tests_timing script

Added --failed-only option and multiple input files support