10-testing/

directory
v0.0.0-...-35bbffe Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2015 License: Apache-2.0

README

Testing and Debugging

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

Package Review

Testing

Prediction

Caching

Godebug

Profiling

Stack Traces

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 | Answer


Ardan Labs Ardan Studios GoingGo Blog


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

Directories

Path Synopsis
01-testing
example4
Sample program that implements a simple web service.
Sample program that implements a simple web service.
example4/handlers
Package handlers provides the endpoints for the web service.
Package handlers provides the endpoints for the web service.
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.
Sample program to review scheduler stats.
Sample program to review scheduler stats.
Sample program to show off Go and check programming environment.
Sample program to show off Go and check programming environment.
06-stack_trace
example1
Sample program to show how to read a stack trace.
Sample program to show how to read a stack trace.
example2
Sample program to show how to read a stack trace when it packs values.
Sample program to show how to read a stack trace when it packs values.

Jump to

Keyboard shortcuts

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