Skip to content

Add benchmark for image equality - #10033

Merged
radarhere merged 2 commits into
python-pillow:mainfrom
akx:equality-benchmark
Sep 21, 2026
Merged

radarhere merged 2 commits into
python-pillow:mainfrom
akx:equality-benchmark

Conversation

@akx

@akx akx commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Comment thread Tests/benchmarks.py Outdated
Comment thread Tests/benchmarks.py
im2.putpixel(xy, value)
else: # Equal
im2 = im1.copy()
bench.extra_info["label"] = [scenario]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bench.extra_info["label"] = [scenario]
bench.extra_info["label"] = scenario

@akx akx Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other benchmarks also wrap a single parameter in a list. This follows that style.

@radarhere
radarhere enabled auto-merge (squash) September 21, 2026 11:40
@radarhere
radarhere merged commit d13f288 into python-pillow:main Sep 21, 2026
48 checks passed
@akx
akx deleted the equality-benchmark branch September 22, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants