Test Sorting Functions

Calculate, quantify and visualize run times of sorting algorithms with various inputs. New and custom algorithms can be added and tested.

You are now following this Submission

Calculate, quantify, and visualize the run times of sorting algorithms across a variety of input conditions.
Select from built-in sorting algorithms or add your own, choose the type of data to sort, specify array lengths, and define how many arrays to test at each size. The app executes each algorithm on identical inputs and plots the resulting run-time performance for direct comparison. Curve fits are also generated and displayed to help analyze time complexity trends.
Custom algorithms can be added to the +sortingMethods subfolder and made available within the app by clicking “Update.”
To use:
1) Install app or run .mlapp file
2) Select sorting functions to analyze
3) Click Run
4) To edit & expand sorting functions - click "Open sorting folder" edit files (if you make a new file click "Update")
5) Change what type of data are to be sorted under "Data to sort" - Sorting data can be plotted with the "Plot" button.
6) Change how long of arrays to sort under "Array lengths"
7) Change how many of each array length to sort with "N tests per length"
All feedback welcome - enjoy!!

Cite As

Chris Wilkening (2026). Test Sorting Functions (https://uk.mathworks.com/matlabcentral/fileexchange/183879-test-sorting-functions), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

upload all source files

1.0.0