Add series and limit benchmarks with cache-aware variants - #125
Add series and limit benchmarks with cache-aware variants#125yuvraj707sharma wants to merge 1 commit into
Conversation
Includes cold-cache benchmarks that measure realistic first-call performance, since ASV runs in a loop and only reports warm-cache time. See: sympy#111
|
Hello, @yuvraj707sharma Right now On the other hand, if So this seems to expose a deeper limitation of expressing true cold-cache benchmarks in ASV, rather than just a small implementation detail. It still looks useful as a “cache-aware variant”, but I am not sure it can be interpreted as a strict first-call benchmark in its current form. |
Includes cold-cache benchmarks that measure realistic first-call performance, since ASV runs in a loop and only reports warm-cache time. See: #111
References to other Issues or PRs
See #111
See sympy/sympy#21374
Brief description of what is fixed or changed
Add benchmarks for series expansions and limit computations.
No series or limit benchmarks existed before in this repo.
Includes cache-aware variants (TimeLimitColdCache) that call
clear_cache() before each measurement. This addresses the concern
raised in #111 that ASV loop-based timing only reports warm-cache
results, which can be misleading for SymPy operations.
Benchmarks added:
AI Generation Disclosure
I used AI for initial guidance on the benchmark structure
and understanding the ASV format. The final code was written by me
after studying the existing benchmarks in this repo.