AaronErhardt / sort_benchmarks

Benchmarks for different sort algorithms implemented in C and in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This project aims to benchmark different sort algorithms implemented in C and in Rust. Instead of just using the fastest algorithms we also want to test the performance of less complex algorithms that are taught in many CS classes. We hope this will make it easier to understand why algorithms with the same theoretical complexity perform very differently on a real computer.

Build

  1. Install Rust. We recommend the rustup installer.
  2. Install a C compiler such as GCC or clang (the compiler choice will influence the results).
  3. Run cargo bench
  4. Plots can be found at target/criterion/report/index.html

Results

Tested on a Core i5-8250U

Insertion Sort

Selection Sort

About

Benchmarks for different sort algorithms implemented in C and in Rust.

License:GNU General Public License v3.0


Languages

Language:HTML 97.6%Language:Rust 2.2%Language:C 0.2%