Sorting Algorithms Time Complexity! Golang Test Arsenal(2) Benchmark

Ramseyjiang
Level Up Coding
Published in
7 min readMay 31, 2023

--

In this article, I will explain the Golang Benchmark Tests, and use them to test the efficiency of sort algorithms, including QuickSort, MergeSort, BubbleSort, InsertionSort and SelectionSort.

What is a benchmark test?

The benchmark test in Golang is a built-in feature of the Go testing framework. It…

--

--

15 years of code experience, got a software-engineering master's degree, learnt C++, JS, PHP and Python, Golang. Have a strong, friendly and lovely rottweiler.