Skip to content

shuf: Performance regression with codegen-units=1 #10486

Description

@oech3

See #10476 (comment)

/// Benchmark shuffling a numeric range with -i
/// Tests the input-range mode which uses a different algorithm
#[divan::bench(args = [1_000_000])]
fn shuf_input_range(bencher: Bencher, range_size: usize) {
let range_arg = format!("1-{range_size}");
bencher.bench(|| {
black_box(run_util_function(uumain, &["-i", &range_arg]));
});
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions