# README
これは何?
Go で test, benchmark, profile を行うサンプルです。
テスト
$ make test
$ make test_verbose
ベンチマーク
$ make bench
$ make bench_only
$ make bench_mem
プロファイル
最初にプロファイル結果を出力しておく必要があります。
$ make profile
その後、それぞれのプロファイル結果を見ることが出来ます。
$ make pprof_cpu
$ make pprof_mem
参考情報
- Escape $ dollar sign on Makefiles
- Add a test
- How to write Go code
- TableDrivenTests
- Profiling a Go program
- google/pprof
- Profile your golang benchmark with pprof
- How To Write Unit Tests in Go
- pprofでのプロファイル(計測)のやり方を改めて整理した
- Goのpprofの使い方【基礎編】
- go標準のbenchmark機能の使い方
- Go pprof 入門編 (CPU Profile とコマンドラインツール)
- Goメモ-138 (staticcheck で警告をコメントで抑制する)
# Functions
No description provided by the author