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