Skip to content

criterion: missing Throughput::ElementsAndBytes?Β #184

@woodruffw

Description

@woodruffw

It looks like the criterion upstream added this in 0.8.0:

https://github.com/criterion-rs/criterion.rs/blob/master/CHANGELOG.md#080---2025-11-29

Relevant API docs:

https://docs.rs/criterion/latest/criterion/enum.Throughput.html#variant.ElementsAndBytes

Whereas with codspeed-criterion-compat one gets:

error[E0599]: no variant named `ElementsAndBytes` found for enum `Throughput`
  --> crates/REDACTED/benches/support/mod.rs:19:21
   |
19 |         Throughput::ElementsAndBytes {
   |                     ^^^^^^^^^^^^^^^^ variant not found in `Throughput`

This might be an intentional gap, but if so it'd be great to have it documented as explicitly not supported like the other APIs that aren't πŸ™‚

https://github.com/CodSpeedHQ/codspeed-rust/tree/main/crates/criterion_compat#not-supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions