Skip to content

Commit e4f1258

Browse files
committed
Add a 'benchmark' pipeline to capture the performance of 'distribution' on 'ipython'
1 parent 649cb49 commit e4f1258

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ coverage:
2222
paths:
2323
- coverage.xml
2424

25+
benchmark:
26+
script:
27+
- tox -e perf
28+
2529
diffcov:
2630
script:
2731
- tox -e py27-diffcov,py35-diffcov,py36-diffcov,py37-diffcov,py38-diffcov

tox.ini

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = {py27,py35,py36,py37,py38}{,-cov,-diffcov},qa,docs
2+
envlist = {py27,py35,py36,py37,py38}{,-cov,-diffcov},qa,docs,perf
33
skip_missing_interpreters = True
44

55

@@ -60,6 +60,14 @@ extras =
6060
docs
6161

6262

63+
[testenv:perf]
64+
use_develop = False
65+
deps =
66+
ipython
67+
commands =
68+
python -m timeit -s 'import importlib_metadata' -- 'importlib_metadata.distribution("ipython")'
69+
70+
6371
[testenv:release]
6472
basepython = python3
6573
deps =

0 commit comments

Comments
 (0)