Add benchmarks for complex type

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
performance

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.

Description

enhancement

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

Dominant language
Python
Stars
1k
Forks
203
Avg merge
1h 20m
Merged PRs (30d)
2

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.

More from python/pyperformance

All issues in python/pyperformance

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.