Skip to content

Migrate Integer/Rational benchmarks from sympy to asv format#126

Open
tharu-jwd wants to merge 1 commit intosympy:masterfrom
tharu-jwd:core-numbers-benchmark
Open

Migrate Integer/Rational benchmarks from sympy to asv format#126
tharu-jwd wants to merge 1 commit intosympy:masterfrom
tharu-jwd:core-numbers-benchmark

Conversation

@tharu-jwd
Copy link
Copy Markdown

References to other Issues or PRs

See sympy/sympy#18097

Brief description of what is fixed or changed

Migrates bench_numbers.py from sympy/core/benchmarks/ to this repo in proper asv format.

The 20 original timeit_ bare functions are reorganized into three benchmark classes:

  • TimeInteger — creation, conversion, arithmetic, and comparison
  • TimeRational — addition with int and Rational
  • TimeNumberUtilsigcd and integer_nthroot

Source: sympy/core/benchmarks/bench_numbers.py

AI Generation Disclosure

NO AI USE

Adds benchmarks/core/numbers.py with three benchmark classes covering
Integer arithmetic, Rational arithmetic, and number utility functions
(igcd, integer_nthroot). Migrated from sympy/core/benchmarks/bench_numbers.py.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant