Skip to content

feat: add benchmark scripts (dfguard vs pandera vs Great Expectations) - #22

Open
nitrajen wants to merge 1 commit into
mainfrom
feat/pandas-backend
Open

feat: add benchmark scripts (dfguard vs pandera vs Great Expectations)#22
nitrajen wants to merge 1 commit into
mainfrom
feat/pandas-backend

Conversation

@nitrajen

Copy link
Copy Markdown
Owner

Summary

  • Adds examples/benchmarks/pipeline.py: a standalone orders pipeline using dfg.arm() for package-wide enforcement across 3 pipeline stages
  • Adds examples/benchmarks/benchmark.py: times 1000 DataFrames (row sizes 10–1000, 7 columns covering 6 dtype categories) against dfguard, pandera, and Great Expectations; also compares lines of code needed to add schema enforcement to a 3-function pipeline
  • Handles missing optional packages (pandera, great-expectations) gracefully with install hints

Test plan

  • Run python examples/benchmarks/pipeline.py — should print processed orders/customers summary
  • Run python examples/benchmarks/benchmark.py — should print benchmark report with dfguard timings; pandera/GE rows show install hint if not present
  • Install pandera and re-run to see speed comparison

Adds examples/benchmarks/pipeline.py (standalone orders pipeline using
arm()) and examples/benchmarks/benchmark.py (times 1000 DataFrames across
dfguard, pandera, and GE; counts lines of code to add enforcement to a
3-function pipeline). Handles missing optional packages gracefully.

Co-Authored-By: Nithin Rajendran <nitrajen@github>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant