Skip to content

Commit 8997cc5

Browse files
authored
Remove benchmarks completely (pydantic#3973)
* removing benchmarks completely * [no ci] add change
1 parent b25e22f commit 8997cc5

20 files changed

+5
-892
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -255,32 +255,9 @@ jobs:
255255
- name: test
256256
run: make test-fastapi
257257

258-
benchmark:
259-
name: run benchmarks
260-
runs-on: ubuntu-latest
261-
env:
262-
BENCHMARK_REPEATS: 1
263-
264-
steps:
265-
- uses: actions/checkout@v3
266-
267-
- name: set up python
268-
uses: actions/setup-python@v3
269-
with:
270-
python-version: '3.8'
271-
272-
- name: install and build
273-
run: |
274-
make build
275-
make install-benchmarks
276-
277-
- run: make benchmark-pydantic
278-
- run: make benchmark-all
279-
- run: make benchmark-json
280-
281258
build:
282259
name: build py3.${{ matrix.python-version }} on ${{ matrix.platform || matrix.os }}
283-
needs: [lint, test-linux, test-windows-mac, test-old-mypy, test-fastapi, benchmark]
260+
needs: [lint, test-linux, test-windows-mac, test-old-mypy, test-fastapi]
284261
if: "success() && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master')"
285262
strategy:
286263
fail-fast: false

Makefile

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ install-testing: install-pydantic
2121
install-docs: install-pydantic
2222
pip install -U -r docs/requirements.txt
2323

24-
.PHONY: install-benchmarks
25-
install-benchmarks: install-pydantic
26-
pip install -U -r benchmarks/requirements.txt
27-
2824
.PHONY: install
2925
install: install-testing install-linting install-docs
3026
@echo 'installed development requirements'
@@ -85,18 +81,6 @@ test-fastapi:
8581
.PHONY: all
8682
all: lint mypy testcov
8783

88-
.PHONY: benchmark-all
89-
benchmark-all:
90-
python benchmarks/run.py
91-
92-
.PHONY: benchmark-pydantic
93-
benchmark-pydantic:
94-
python benchmarks/run.py pydantic-only
95-
96-
.PHONY: benchmark-json
97-
benchmark-json:
98-
TEST_JSON=1 python benchmarks/run.py
99-
10084
.PHONY: clean
10185
clean:
10286
rm -rf `find . -name __pycache__`

benchmarks/profile.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

benchmarks/requirements.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)