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