Investigating Pydantic v2's Bold Performance Claims

This page summarizes the projects mentioned and recommended in the original post on dev.to

Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • pytest-benchmark

    py.test fixture for benchmarking code

  • To test this, we will setup some benchmarks using pytest-benchmark, some sample data with a simple schema, and compare results between Python's dataclass, Pydantic v1, and v2.

  • pydantic-core

    Core validation logic for pydantic written in rust

  • I encourage you to checkout the official benchmarks for more realistic and detailed examples, and, as always, YMMV.

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • rust

    Empowering everyone to build reliable and efficient software.

  • For those unfamiliar, Pydantic is currently implemented in Python and this rewrite shifts most of the code to Rust, a systems programming language touted as "blazingly fast" and safe.

  • powertools-lambda-python

    A developer toolkit to implement Serverless best practices and increase developer velocity.

  • It's worth noting that these improvements will also impact other libraries and frameworks that rely on Pydantic, such as FastAPI and AWS Lambda Powertools, which could deliver some transitive performance improvements to various projects that don't directly depend on Pydantic themselves.

  • fastapi

    FastAPI framework, high performance, easy to learn, fast to code, ready for production

  • If you work with backend APIs in Python, you've probably used or heard of Pydantic, perhaps from FastAPI. The library advertises itself as "data validation and settings management using Python type annotations" and it makes (de)serialization of data a breeze.1

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Uv: Python Packaging in Rust

    9 projects | news.ycombinator.com | 15 Feb 2024
  • Ask HN: Show me your half baked project

    163 projects | news.ycombinator.com | 12 Oct 2023
  • Making Python 100x faster with less than 100 lines of Rust

    21 projects | news.ycombinator.com | 29 Mar 2023
  • Show HN: Mathesar – open-source collaborative UI for Postgres databases

    13 projects | news.ycombinator.com | 2 Mar 2023
  • Active Malware Campaign Targeting Popular Python Packages Underway

    3 projects | /r/netsec | 11 Feb 2023