Add FPS (Formal Power Series) benchmark workload - #34
Merged
Conversation
Exercises exp/log (which internally use diff, integral, inv, and multiplication) on an 8192-term series, picked up automatically by both the pytest-benchmark time suite and the tracemalloc memory suite since they iterate workloads.BENCHMARKS. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011dKfP4nUzhqoGypWQNJxta
📊 Performance Benchmark Results⏱️ Execution time (mean, lower is better)
💾 Peak memory (lower is better)
Base = target branch, PR = this branch. Negative delta = improvement. ✅ improvement ≥ 1%, |
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
This PR adds a new benchmark workload for Formal Power Series (FPS) operations to the benchmarks suite.
Key Changes
fpsmodule at the top of the workloads filebuild_fps_workload()function that generates a random sequence of n=8,192 elements modulo 998244353run_fps()function that performs FPS operations: exponential, logarithm, and resize operationsBENCHMARKSlistImplementation Details
The FPS workload:
exp()(exponential),log()(logarithm), andresize()(resizing to original length)https://claude.ai/code/session_011dKfP4nUzhqoGypWQNJxta