Skip to content

Wrong benchmarks in library/core/benches/char/methods.rs and possibly other places #107590

Closed
@safinaskar

Description

@safinaskar

As I learned from https://gendignoux.com/blog/2022/01/31/rust-benchmarks.html#application-to-real-benchmarks file library/core/benches/char/methods.rs and possibly other files in this repo contain wrong benchmarks.

As author of the article points, call c.to_digit(2) optimizes to None and thus doesn't get benchmarked.

So, please, find all such places and fix them. The faulty example still present in latest master

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions