Skip to content

BENCH: add benchmark suite for mergesort #12368

Open

Description

@liwt31

As we are considering replacing mergesort with another algorithm in hope of improving performance for nearly sorted data #12186 , maybe we should include benchmark for mergesort in the benchmark suite, which currently only takes care of quicksort.
As I see it, there are two ways to do this:

  • Simply add 2 benchmark functions on random data and nearly sorted data for mergesort.
  • Separate sorting algorithm benchmark from bench_function_base.py to a new file and construct a systematic benchmark framework for sorting algorithms. This can provide a useful tool for future optimizations, however it may introduce lots of unnecessary benchmark results.

Any advice or suggestions? Thank you all in advance.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions