-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Documentation: rename benchmark django-restful-framework -> django-rest-framework #1119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1119 +/- ##
=======================================
Coverage 99.97% 99.97%
=======================================
Files 20 20
Lines 3395 3395
Branches 664 664
=======================================
Hits 3394 3394
Misses 1 1Continue to review full report at Codecov.
|
|
Did you cythonize before running the benchmark locally? That will make pydantic about 2x faster. |
|
Also, I always use the same I know that |
|
@dmontagu I didn't, and TBH I never did that. Shouldn't it be mentioned in the benchmarks page? It just says "run with Python 3.7.4". That doesn't seem very fair regarding the other libs. @samuelcolvin Ok, I'll do that 👍 |
The benchmarks say:
I think that's the fair way of running benchmarks - with the library versions distributed via pypi. Pydantic provides binaries compiled with cython from python which is modified in numerous ways to be compilable and as fast as possible when compiled - that's one of the reasons it's fast. If other libraries provided similar binaries for linux, they would be used too; some may already be, I haven't checked. |
|
@samuelcolvin Thank you, I understand better now. So, since I ran the benchmark with a pydantic version pulled from PyPi (not the one on my local machine), I guess then it actually ran with the Cython optimizations? |
|
Only if you're on linux, you can checked via |
|
I didn't then, i was on macOS. Thank you for providing those details 👍 |
|
thanks. |
…st-framework (pydantic#1119) * Rename django-rest-framework benchmark * Add change file for pydantic#1119 * Rename django-rest-framework in existing benchmarks results
Change Summary
I came across this while reading the benchmark page in the docs: benchmark for
django-rest-frameworkwas nameddjango-restful-framework. This confused me a bit.I changed the package name in the benchmark script and run the script instead of modifying directly the generated MD file, as specified.
Problem is that, on my machine, the benchmark is not in favor of pydantic 😟So I don't know what you prefer for this (I would be okay to just edit the previous results).
Related issue number
Nope.
Checklist
changes/<pull request or issue id>-<github username>.mdfile added describing change(see changes/README.md for details)