Skip to content

Commit bfdbff7

Browse files
committed
Performance BM upgr
1 parent f3c8525 commit bfdbff7

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.github/workflows/benchmark.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,13 @@ jobs:
306306
- name: Compare results
307307
run: |
308308
exit_code=0
309-
LOW_DELTA=10
310-
THRESHOLD=250
309+
LOW_DELTA=100
310+
THRESHOLD=2500
311311
312312
# RELEASE
313313
if [ ${RELEASE_TIME} -le ${HEAD_TIME} ]; then
314-
d=$(( 1000 * ( ${HEAD_TIME} - ${RELEASE_TIME} ) / ${RELEASE_TIME} ))
315-
echo "RELEASE_TIME (sec) = ${RELEASE_TIME}, current (sec) = ${HEAD_TIME}. Diff (% * 10): ${d}"
314+
d=$(( 10000 * ( ${HEAD_TIME} - ${RELEASE_TIME} ) / ${RELEASE_TIME} ))
315+
python -c "print(f'RELEASE_TIME = ${RELEASE_TIME} sec, HEAD_TIME = ${HEAD_TIME} sec, diff: {$d/100:.2f} %')"
316316
if [ $LOW_DELTA -ge ${d} ]; then
317317
echo "Almost the same."
318318
elif [ $THRESHOLD -lt ${d} ]; then
@@ -322,8 +322,8 @@ jobs:
322322
echo "Slowdown."
323323
fi
324324
else
325-
d=$(( 1000 * ( ${RELEASE_TIME} - ${HEAD_TIME} ) / ${RELEASE_TIME} ))
326-
echo "RELEASE_TIME (sec) = ${RELEASE_TIME}, current (sec) = ${HEAD_TIME}. Diff (% * 10): ${d}"
325+
d=$(( 10000 * ( ${RELEASE_TIME} - ${HEAD_TIME} ) / ${RELEASE_TIME} ))
326+
python -c "print(f'RELEASE_TIME = ${RELEASE_TIME} sec, HEAD_TIME = ${HEAD_TIME} sec, diff: {$d/100:.2f} %')"
327327
if [ $LOW_DELTA -ge ${d} ]; then
328328
echo "Almost the same."
329329
elif [ $THRESHOLD -lt ${d} ]; then
@@ -335,8 +335,8 @@ jobs:
335335
336336
# BASE
337337
if [ ${BASE_TIME} -le ${HEAD_TIME} ]; then
338-
d=$(( 1000 * ( ${HEAD_TIME} - ${BASE_TIME} ) / ${BASE_TIME} ))
339-
echo "BASE_TIME (sec) = ${BASE_TIME}, current (sec) = ${HEAD_TIME}. Diff (% * 10): ${d}"
338+
d=$(( 10000 * ( ${HEAD_TIME} - ${BASE_TIME} ) / ${BASE_TIME} ))
339+
python -c "print(f'BASE_TIME = ${BASE_TIME} sec, HEAD_TIME = ${HEAD_TIME} sec, diff: {$d/100:.2f} %')"
340340
if [ $LOW_DELTA -ge ${d} ]; then
341341
echo "Almost the same."
342342
elif [ $THRESHOLD -lt ${d} ]; then
@@ -346,8 +346,8 @@ jobs:
346346
echo "Slowdown."
347347
fi
348348
else
349-
d=$(( 1000 * ( ${BASE_TIME} - ${HEAD_TIME} ) / ${BASE_TIME} ))
350-
echo "BASE_TIME (sec) = ${BASE_TIME}, current (sec) = ${HEAD_TIME}. Diff (% * 10): ${d}"
349+
d=$(( 10000 * ( ${BASE_TIME} - ${HEAD_TIME} ) / ${BASE_TIME} ))
350+
python -c "print(f'BASE_TIME = ${BASE_TIME} sec, HEAD_TIME = ${HEAD_TIME} sec, diff: {$d/100:.2f} %')"
351351
if [ $LOW_DELTA -ge ${d} ]; then
352352
echo "Almost the same."
353353
elif [ $THRESHOLD -lt ${d} ]; then

requirements.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,23 @@ PyYAML==6.0.3
4444
rpmfile==2.1.0
4545
whatthepatch==1.0.7
4646

47-
# Auxiliary
48-
# Tests and maintenance packages
49-
# Fixed versions are not necessary
50-
hypothesis
47+
# Auxiliary packages for development
48+
# tests
5149
deepdiff
5250
flake8
53-
pylint
54-
mypy
51+
hypothesis
5552
pytest
5653
pytest-cov
5754
pytest-html
5855
pytest-random-order
59-
pandas-stubs
56+
# linters
57+
pylint
58+
mypy
6059
yapf
61-
62-
# linters support
60+
# stubs
6361
lxml-stubs
62+
pandas-stubs
63+
# types
6464
types-beautifulsoup4
6565
types-colorama
6666
types-lxml

0 commit comments

Comments
 (0)