Add benchmarks for complex type
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 203
- Avg merge
- 1h 20m
- Merged PRs (30d)
- 2
Description
This inspired by https://github.com/python/cpython/pull/135233.
Unfortunately, we don't have any benchmarks for this builtin type, that opens door for possible speed regressions, just like for the decimal module (see https://github.com/python/cpython/issues/144650).
Perhaps, even simple sin() benchmarks from the referenced pr would be better than nothing: https://github.com/python/cpython/pull/135233#issuecomment-2952753132 But I appreciate suggestions.
CC @tim-one
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the referenced CPython pull request and the existing decimal-module benchmarks in pyperformance to find the relevant benchmark entry points and conventions. Add comparable benchmarks for the complex builtin type, then run the benchmark suite to confirm they execute and provide coverage for possible speed regressions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100