performance comparison

This commit is contained in:
Alexander Kuzmenkov 2020-03-12 17:52:31 +03:00
parent e301e4fd51
commit e9a2534e30
2 changed files with 6 additions and 8 deletions

View File

@ -27,7 +27,7 @@ function find_reference_sha
# building and testing not the nominal last SHA specified by pull/.../head
# and SHA_TO_TEST, but a revision that is merged with recent master, given
# by pull/.../merge ref.
if [ git -C ch rev-parse pr/merge &> /dev/null ]
if git -C ch rev-parse pr/merge
then
start_ref=pr/merge
fi
@ -60,19 +60,15 @@ if [ "$REF_PR" == "" ]; then echo Reference PR is not specified ; exit 1 ; fi
# Show what we're testing
(
echo Reference SHA is "$REF_SHA"
git -C ch log -1 --decorate "$REF_SHA" ||:
echo
) | tee left-commit.txt
(
echo SHA to test is "$SHA_TO_TEST"
git -C ch log -1 --decorate "$SHA_TO_TEST" ||:
if [ git -C ch rev-parse pr/merge &> /dev/null ]
if git -C ch rev-parse pr/merge &> /dev/null
then
echo
echo
echo Real tested commit is $(git -C ch rev-parse pr/merge)
echo Real tested commit is:
git -C ch log -1 --decorate pr/merge
fi
) | tee right-commit.txt

View File

@ -135,7 +135,9 @@ def printSimpleTable(caption, columns, rows):
print(tableEnd())
printSimpleTable('Tested commits', ['Old', 'New'],
[[open('left-commit.txt').read(), open('right-commit.txt').read()]])
[['<pre>{}</pre>'.format(x) for x in
[open('left-commit.txt').read(),
open('right-commit.txt').read()]]])
def print_changes():
rows = tsvRows('changed-perf.tsv')