File: profile

package info (click to toggle)
gron 0.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,740 kB
  • sloc: sh: 74; makefile: 17
file content (12 lines) | stat: -rwxr-xr-x 205 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e
PROJDIR=$(cd `dirname $0`/.. && pwd)
cd ${PROJDIR}

PAT="."
if [ ! -z "${1}" ]; then
    PAT="${1}"
fi

go test -bench ${PAT} -benchmem -cpuprofile cpu.out
go tool pprof gron.test cpu.out