python / python/pyperformance

Add benchmarks for complex type

Open
#458 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.