bench(python): add pytest-benchmark suite with evaluation and operator benchmarks#65
Merged
Conversation
…r benchmarks Replace the manual time.time() benchmark with a proper pytest-benchmark suite covering flag evaluation (all types), custom operators (fractional, semver, starts_with, ends_with), state management at different scales, and concurrent evaluation. Includes optional comparison against pure-Python JSON Logic. Closes #62 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 tasks
… comparisons Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
aepfli
added a commit
that referenced
this pull request
Feb 10, 2026
…#67) ## Summary - Adds `BENCHMARKS.md` defining a consistent benchmark specification across Rust, Java, and Python - Covers evaluation scenarios (E1-E11), custom operators (O1-O6), state management (S1-S5), concurrency (C1-C6), and old-vs-new comparison (X1-X3) - Standardizes context shapes and flag definitions for direct cross-language comparison ## Context The benchmark PRs (#64, #65, #66) implement subsets of this matrix. This document serves as the reference spec so all three languages converge on the same scenarios and can be compared meaningfully. ## Test plan - [ ] Review benchmark IDs and scenarios for completeness - [ ] Verify context/flag definitions match what implementations use 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Replace non-existent json_logic_utils with panzi-json-logic, which is the actual JSON Logic library used by the flagd Python provider (openfeature-provider-flagd). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
time.time()benchmark with proper pytest-benchmark suitepytest-benchmark>=4.0to dev dependenciesBenchmark Scenarios
update_state()scalingHow to run
cd python uv sync --group dev maturin develop pytest benchmarks/ --benchmark-only --benchmark-disable-gc -vInitial Results
Test plan
maturin develop+pytest benchmarks/succeedsCloses #62
🤖 Generated with Claude Code