Add benchmarks for categories: serialization, validation and schema generation#10240
Conversation
CodSpeed Performance ReportMerging #10240 will not alter performanceComparing Summary
Benchmarks breakdown
|
|
I'm lost as to why the tests are failing. I can't see how my code is impacting them. I would really appreciate some advice ;) Thanks! |
|
Thanks for taking a stab at this. Regarding the benchmarks related to core schema generation, I'll probably expand these to meet my needs (related to #10223). I'll make sure to add you as a co-author. |
|
Hmm, test failure does seem odd. @AdolfoVillalobos, amazing work here - thanks for helping us to expand our benchmarks! |
|
So odd, I can't repo that test failure locally, even when pulling your changes |
sydney-runkle
left a comment
There was a problem hiding this comment.
I'll investigate this test failure on a separate branch, but have pushed a patch fix for now.
I'm glad this PR was helpful ;) Thanks! |
Yess, it was a bit odd. I still don't quite get what was broken. In any case, thanks for the help and support ;). I love this project; It has helped me many times, so I am happy and proud to make my first contribution. Hopefully, I will continue to contribute in the future ;) |
Change Summary
I created three tests to benchmark Pydantic's performance in basic categories:
The tests handle varying levels of complexity ranging from simple tests to nested scenarios, inspired by the pydantic-core test suite.
Related issue number
Contributes to #9711
Checklist