benchmarking/

directory
v0.0.0-...-a855ea4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2016 License: Apache-2.0

README

Benchmarking

Go has support for both testing and debugging. This includes profiling and benchmarking Go programs.

Package Review

Basic Benchmarking (Go Playground)

Prediction

Caching

Profiling

http://dave.cheney.net/2013/06/30/how-to-write-benchmarks-in-go

Profiling & Optimizing in Go / Brad Fitzpatrick

Benchstat computes and compares statistics about benchmarks

Exercises

Exercise 1

Write three benchmark tests for converting an integer into a string. First use the fmt.Sprintf function, then the strconv.FormatInt function and finally the strconv.Itoa. Identify which function performs the best.

Template (Go Playground)

Answer (Go Playground)


All material is licensed under the Apache License Version 2.0, January 2004.

Directories

Path Synopsis
package caching provides code to show why CPU caches matter and the way the hardware caches memory affects performance.
package caching provides code to show why CPU caches matter and the way the hardware caches memory affects performance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL