benchmark.sh 149 B

123456
  1. #!/bin/bash
  2. go test -bench=Benchmark -benchmem -memprofile memory.out -cpuprofile cpu.out
  3. echo go tool pprof memory.out
  4. echo go tool pprof cpu.out