mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
performance comparison
This commit is contained in:
parent
e301e4fd51
commit
e9a2534e30
@ -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
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user