[go: up one dir, main page]

Skip to content

mj0nez/api-playground

Repository files navigation

Playground

This repository provides a playground to evaluate different API-frameworks. Implementing the same functionality with different libs should show meaningful differences in concepts, implementation and performance.

The App

...

Benchmarks

Note

Requirements:

  • hey: HTTP load generator, ApacheBench (ab) replacement

WIP

Upload of ~ 13.5 MB JSON

  • Litestar

    • msgspec DTO
    • pydantic DTO
  • FastAPI

    • pydantic

Upload of ~ 13.5 MB JSON with serialized Response of 283.29 KB

For a quick test the implemented data model is small. I suspect that the difference between the frameworks will increase with the response size.

  • Litestar

    • msgspec DTO
    • pydantic DTO
  • FastAPI

    • pydantic

Disclaimer

The JSON data was taken from here and shortened while the idea originated from following this podcast and reading the referenced article.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages