#!/bin/bash go test -bench=BenchmarkBar -benchmem -memprofile memory.out -cpuprofile cpu.out echo go tool pprof memory.out echo go tool pprof cpu.out