feat: add benchmark scripts (dfguard vs pandera vs Great Expectations) - #22
Open
nitrajen wants to merge 1 commit into
Open
feat: add benchmark scripts (dfguard vs pandera vs Great Expectations)#22nitrajen wants to merge 1 commit into
nitrajen wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/benchmarks/pipeline.py: a standalone orders pipeline usingdfg.arm()for package-wide enforcement across 3 pipeline stagesexamples/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 pipelineTest plan
python examples/benchmarks/pipeline.py— should print processed orders/customers summarypython examples/benchmarks/benchmark.py— should print benchmark report with dfguard timings; pandera/GE rows show install hint if not present