Skip to content

Benchmark results #1

@Azmisov

Description

@Azmisov

My use case was 100k items with lots of duplicates. I compared my own Floyd-Rivest implementation, your code, and nth_element. For small lists, nth_element was the fastest, with Floyd-Rivest and quickselect-adaptive both about twice as slow. For large lists, Floyd-Rivest was the fastest, about 30% faster than nth_element. Quickselet-adaptive was actually the slowest, being 20% slower than nth_element.

I guess this isn't necessarily an issue; just information for whoever may be looking for select algorithm implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions