Skip to content

Akshat120/go_sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Go Sorting Algorithm Benchmark

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages