Skip to content

Commit

Permalink
update benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Feb 25, 2021
1 parent 3ec3559 commit 90df33c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions docs/.benchmarks_table.md
Expand Up @@ -2,10 +2,12 @@

Package | Version | Relative Performance | Mean validation time
--- | --- | --- | ---
pydantic | `1.1` | | 43.6μs
attrs + cattrs | `19.3.0` | 1.4x slower | 59.9μs
valideer | `0.4.2` | 1.4x slower | 61.8μs
marshmallow | `3.2.2` | 2.5x slower | 107.6μs
trafaret | `2.0.0` | 3.4x slower | 148.7μs
django-rest-framework | `3.10.3` | 12.6x slower | 551.2μs
cerberus | `1.3.2` | 26.3x slower | 1146.3μs
pydantic | `1.7.3` | | 93.7μs
attrs + cattrs | `20.3.0` | 1.5x slower | 143.6μs
valideer | `0.4.2` | 1.9x slower | 175.9μs
marshmallow | `3.10.0` | 2.4x slower | 227.6μs
voluptuous | `0.12.1` | 2.7x slower | 257.5μs
trafaret | `2.1.0` | 3.2x slower | 296.7μs
schematics | `2.1.0` | 10.2x slower | 955.5μs
django-rest-framework | `3.12.2` | 12.3x slower | 1148.4μs
cerberus | `1.3.2` | 25.9x slower | 2427.6μs
2 changes: 1 addition & 1 deletion docs/benchmarks.md
Expand Up @@ -5,4 +5,4 @@ Below are the results of crude benchmarks comparing *pydantic* to other validati
See [the benchmarks code](https://github.com/samuelcolvin/pydantic/tree/master/benchmarks)
for more details on the test case. Feel free to suggest more packages to benchmark or improve an existing one.

Benchmarks were run with Python 3.7.4 and the package versions listed above installed via pypi on Ubuntu 18.04.
Benchmarks were run with Python 3.8.6 and the package versions listed above installed via pypi on macOS Bug Sur.

0 comments on commit 90df33c

Please sign in to comment.