diff options
author | Josh Haberman <jhaberman@gmail.com> | 2014-12-09 15:02:58 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2014-12-09 15:02:58 -0800 |
commit | 82be433d4188e0b3b992e463ad52ee148d3ad8de (patch) | |
tree | 9eb0f3c941114c52e97f4e908acbd5b4bc68c4d3 /perf-regression-test.py | |
parent | bf51ef86b448138a281e796df5bdfa8fa118524d (diff) |
Decoder bugfix, .gitignore update, and delete obsolete files.
Diffstat (limited to 'perf-regression-test.py')
-rwxr-xr-x | perf-regression-test.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/perf-regression-test.py b/perf-regression-test.py deleted file mode 100755 index 4e2cf09..0000000 --- a/perf-regression-test.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python -# Use to test the current working directory's performance against HEAD. - -import os - -os.system(""" -set -e -set -v - -# Generate numbers for baseline. -rm -rf perf-tmp -git clone . perf-tmp -cp perf-tests.sh perf-tmp -(cd perf-tmp && ./perf-tests.sh upb) -cp perf-tmp/perf-tests.out perf-tests.baseline - -# Generate numbers for working directory. -./perf-tests.sh upb""") - -baseline = {} -baseline_file = open("perf-tests.baseline") -for line in baseline_file: - test, speed = line.split(":") - baseline[test] = int(speed) - -print("\n\n=== PERFORMANCE REGRESSION TEST RESULTS:\n") -wd_file = open("perf-tests.out") -for line in wd_file: - test, speed = line.split(":") - baseline_val = baseline[test] - change = float(int(speed) - baseline_val) / float(baseline_val) * 100 - print "%s: %d -> %d (%0.2f)" % (test, baseline_val, int(speed), change) |