Performing Benchmark Tests in Go

Benchmark testing in programming is the act of efficiently comparing performance between algorithms in order to choose which approach to follow in certain scenarios. We can also apply when deciding which external libraries or frameworks to use, in addition to evaluating if any refactoring will bring harm to our code.
The Go language already has tools for these types of tests by default, making the experience more user-friendly and without the need for external tools.
Installing Portainer

Portainer is an Open Source application for managing Docker on local machines or servers. Through its graphical interface it is possible to view and edit your Containers, Images, Volumes and so on. And its installation is very easy as it is distributed as a Docker image.
Just perform the following steps:
Create a volume to persist your settings: docker volume create portainer_data Run the docker command to create the container and inform some initial configuration parameters: docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.
Yet Another MongoDB Golang Tutorial
After years relying on Community drivers like mgo and globalsign/mgo, last year MongoDB announced they were building it’s own solution. Last March they released the version 1.0.0, so let’s see how to make some normal operations using the Oficial driver.
First of all, you need to download the driver using go get.
go.mongodb.org/mongo-driver/mongo Assuming your MongoDB installation is using the default setting, your method should be like this:
package main import ( "context" "log" "go.