Skip to content

Instantly share code, notes, and snippets.

View davecheney's full-sized avatar
🔥
more cowbell

Dave Cheney davecheney

🔥
more cowbell
View GitHub Profile
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kuard
labels:
app: kuard
spec:
backend:
serviceName: kuard
servicePort: 80
[[constraint]]
name="k8s.io/apimachinery"
revision="1fd2e63a9a370677308a42f24fd40c86438afddf"
[[constraint]]
name="k8s.io/client-go"
branch="release-4.0"
@davecheney
davecheney / benchstat.txt
Created November 28, 2016 23:58
linux/amd64 Go 1.7.3 vs Go tip
name old time/op new time/op delta
BinaryTree17-8 2.58s ± 1% 2.59s ± 0% ~ (p=0.310 n=5+5)
Fannkuch11-8 2.91s ± 0% 2.85s ± 0% -1.87% (p=0.004 n=5+6)
FmtFprintfEmpty-8 48.8ns ± 0% 47.4ns ± 0% -2.87% (p=0.010 n=6+4)
FmtFprintfString-8 134ns ± 1% 119ns ± 1% -11.28% (p=0.002 n=6+6)
FmtFprintfInt-8 125ns ± 0% 112ns ± 2% -10.40% (p=0.004 n=5+6)
FmtFprintfIntInt-8 189ns ± 1% 171ns ± 1% -9.86% (p=0.002 n=6+6)
FmtFprintfPrefixedInt-8 187ns ± 1% 178ns ± 1% -4.55% (p=0.002 n=6+6)
FmtFprintfFloat-8 270ns ± 0% 262ns ± 1% -3.15% (p=0.004 n=5+6)
FmtManyArgs-8 803ns ± 1% 734ns ± 0% -8.56% (p=0.000 n=6+5)

Hello,

Peter Bourgon recently announced his proposal for a working group of 4-6 individuals to address the need for an official dependency management solution for Go. With the imminent release of Go 1.7 and the commencement of the next development cycle, the formation of this working group should be a high priority item.

I would like to be nominated to be part of this working group and seek your support. In doing so I wish to make clear my position that, if nominated, I would represent to the working group:

  • Simple. The solution must be simple in both implementation and use. It should do no more than the absolute minimum required to satisfy the requirements for a tool, and those requirements should be expressed as user stories for the various users of a Go dependency management tool.
  • Opinionated. The solution will recommend and support only one way to use it. There will be an absolute
@davecheney
davecheney / patch.diff
Created April 7, 2016 11:08
Diffy McDiffface
diff --git a/src/errors/errors.go b/src/errors/errors.go
index b8a4692..ba1e239 100644
--- a/src/errors/errors.go
+++ b/src/errors/errors.go
@@ -10,6 +10,10 @@ func New(text string) error {
return &errorString{text}
}
+type Error string
+
@davecheney
davecheney / state.p2
Last active March 14, 2016 01:57
time go build -p {2,4} -toolexec="/usr/bin/time -f '%e %U %S %C'" github.com/juju/juju/state
# github.com/dustin/go-humanize
0.16 0.17 0.01 /home/dfc/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/dustin/go-humanize.a -trimpath $WORK -p github.com/dustin/go-humanize -complete -buildid de09e504b519d57af1007b67bd985dd23afff040 -D _/home/dfc/devel/benchjuju/src/github.com/dustin/go-humanize -I $WORK -pack src/github.com/dustin/go-humanize/big.go src/github.com/dustin/go-humanize/bigbytes.go src/github.com/dustin/go-humanize/bytes.go src/github.com/dustin/go-humanize/comma.go src/github.com/dustin/go-humanize/ftoa.go src/github.com/dustin/go-humanize/humanize.go src/github.com/dustin/go-humanize/ordinals.go src/github.com/dustin/go-humanize/si.go src/github.com/dustin/go-humanize/times.go
# github.com/juju/errors
0.20 0.21 0.00 /home/dfc/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/juju/errors.a -trimpath $WORK -p github.com/juju/errors -complete -buildid cfc5fe257334e1b6901ea28e47fb3327a9878809 -D _/home/dfc/devel/benchjuju/src/github.com/juju/errors -I $WORK -pack src/github.com/juju/errors
This file has been truncated, but you can view the full file.
# github.com/juju/loggo
0.16 0.19 0.00 /home/dfc/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/juju/loggo.a -trimpath $WORK -p github.com/juju/loggo -complete -buildid 1bc414553101babdbe5fea1011baae565f71c4b9 -D _/home/dfc/devel/benchjuju/src/github.com/juju/loggo -I $WORK -pack src/github.com/juju/loggo/doc.go src/github.com/juju/loggo/formatter.go src/github.com/juju/loggo/logger.go src/github.com/juju/loggo/testwriter.go src/github.com/juju/loggo/writer.go
# github.com/juju/utils/clock
0.02 0.01 0.00 /home/dfc/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/juju/utils/clock.a -trimpath $WORK -p github.com/juju/utils/clock -complete -buildid 5b033c6dc5a8bf5fe580ab9c152b4f3a3e1da12f -D _/home/dfc/devel/benchjuju/src/github.com/juju/utils/clock -I $WORK -pack src/github.com/juju/utils/clock/clock.go src/github.com/juju/utils/clock/wall.go
# github.com/juju/errors
0.19 0.20 0.00 /home/dfc/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/juju/errors.a -trimpath $WORK -p github.com/juju/errors -comp
@davecheney
davecheney / benchjuju.0c7ccbf6.txt
Created March 8, 2016 21:20
go build -toolexec="/usr/bin/time -f '%e %U %S %C'" github.com/juju/juju/cmd/jujud (5 times)
This file has been truncated, but you can view the full file.
20.64 15.48 0.30 /home/dfc/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/juju/juju/state.a -trimpath $WORK -p github.com/juju/juju/state -complete -buildid b2076cfb2bce2c538ae9eb133f4022abbc43bfd6 -D _/home/dfc/devel/benchjuju/src/github.com/juju/juju/state -I $WORK -I /home/dfc/devel/benchjuju/pkg/linux_amd64 -pack src/github.com/juju/juju/state/action.go src/github.com/juju/juju/state/addmachine.go src/github.com/juju/juju/state/address.go src/github.com/juju/juju/state/allcollections.go src/github.com/juju/juju/state/allwatcher.go src/github.com/juju/juju/state/annotations.go src/github.com/juju/juju/state/block.go src/github.com/juju/juju/state/blockdevices.go src/github.com/juju/juju/state/charm.go src/github.com/juju/juju/state/cleanup.go src/github.com/juju/juju/state/clock.go src/github.com/juju/juju/state/collection.go src/github.com/juju/juju/state/constraints.go src/github.com/juju/juju/state/container.go src/github.com/juju/juju/state/database.go src/github.com/juju/juju/state/distribution.g
@davecheney
davecheney / gist:fd42cb71dbef5f1a67ca
Created March 7, 2016 23:35
beware intel thermal scaling
lucky(~/devel/benchjuju) % bash benchjuju.bash
go version devel linux/amd64
real 1m44.259s
user 5m16.250s
sys 0m14.640s
real 1m54.286s
user 5m48.517s
sys 0m16.321s
// junkterm is a quick and dirty serial terminal.
package main
import (
"io"
"log"
"os"
"github.com/pkg/term"
"github.com/spf13/cobra"