Too Long; Didn't Read
The Golang testing package contains a benchmarking facility that can be used to examine the performance of your Golang code. In this article we'll see how to write simple benchmark tests that are able to provide us good insights about a given algorithmic solution. The Fibonacci number calculation is a classic numerical series where each subsequent number is the sum of the previous two numbers: 1 1 2 3 5 8 13......or 1.631s versus 1.875s. We'll benchmark both recursive and sequential approaches by calculating the sequence for 10 and 20.