Skip to content

Instantly share code, notes, and snippets.

View yifan-gu's full-sized avatar

Yifan Gu yifan-gu

  • Anchorage Digital
  • San Francisco
View GitHub Profile
@potatoqualitee
potatoqualitee / no-bright-blue-github.css
Last active March 2, 2017 02:04
Stylebot CSS for the good ol' gentle blue colors of GitHub
h1.public strong a {
color: #4078C0;
}
a.subnav-item.js-subnav-item.selected {
background-color: #4078C0;
}
svg.octicon.octicon-file-directory path {
color: #4078C0;
@yifan-gu
yifan-gu / bench2
Created July 13, 2014 23:53
benchmark of the messenger/codec/gogoprotobuf_codec.go
=== RUN TestGoGoProtobufCodec
--- PASS: TestGoGoProtobufCodec (0.00 seconds)
PASS
BenchmarkGoGoProtobufWithoutReflectMarshal 5000000 704 ns/op
BenchmarkGoGoProtobufWithoutReflectUnmarshal 1000000 1313 ns/op
BenchmarkGoGoProtoBufCodecMarshal 1000000 1726 ns/op
BenchmarkGoGoProtoBufCodecUnmarshal 1000000 2098 ns/op
ok github.com/go-distributed/messenger/codec 9.437s