_______ is commonly used for writing benchmarks in Go.
- go bench
- go benchmark
- go run
- go test
In Go, benchmarks are written using the testing package. The go test command with the -bench flag is commonly used to execute benchmarks.
Loading...
Related Quiz
- Which of the following is not a valid way to call a function in Go?
- When defining a Go struct for JSON encoding, the field tags are specified using ________.
- Go templates support _______ control structures like if, else, range, and with.
- In Go, '_______' is a built-in function that stops the ordinary flow of control and begins panicking.
- How can you specify the output file name when using the go build command?