An open API service indexing awesome lists of open source software.

https://github.com/akshat120/go_sorting

Go Sorting Algorithm Benchmark
https://github.com/akshat120/go_sorting

algotithms golang goroutine waitgroup

Last synced: 12 months ago
JSON representation

Go Sorting Algorithm Benchmark

Awesome Lists containing this project

README

          

# Go Sorting Algorithm Benchmark

This is a Go program that benchmarks different sorting algorithms by measuring their execution time on a randomly generated array of integers. The program uses goroutines and WaitGroups to run multiple sorting algorithms concurrently.

## Features

- Benchmarks four sorting algorithms:
- Bubble Sort
- Insertion Sort
- Selection Sort
- Merge Sort
- Quick Sort
- Runs algorithms concurrently using goroutines
- Measures and displays execution time for each algorithm
- Uses a randomly generated array of 100,000 integers

## Specifications for testing machine

- **Chip**: Apple M4
- **CPU**: 10-core (6 performance cores, 4 efficiency cores)
- **GPU**: 10-core
- **Memory**: 16GB

## Output for testing machine
Screenshot 2025-03-11 at 6 39 14 PM