File: t.sh

package info (click to toggle)
golang-github-pquerna-ffjson 0.0~git20181028.e517b90-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 640 kB
  • sloc: makefile: 37; sh: 6
file content (14 lines) | stat: -rwxr-xr-x 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -e

make -C ..
ffjson ff.go

# 
# https://twitter.com/jpetazzo/status/446476354930757632/photo/1
#

go test -benchmem -bench MarshalJSON
go test -benchmem -bench MarshalJSONNative -cpuprofile="prof.dat" -benchtime 10s
go tool pprof -gif tests.test prof.dat >out.gif