Skip to content

Instantly share code, notes, and snippets.

View mdempsky's full-sized avatar

Matthew Dempsky mdempsky

  • San Francisco, CA
  • 04:14 (UTC -07:00)
View GitHub Profile
@mdempsky
mdempsky / gist:d72b9dd0b096e1cbd880
Created October 31, 2014 17:56
checklicenses.py output for third_party/stp
$ ./tools/checklicenses/checklicenses.py third_party/stp/src/
Using base directory: /usr/local/google/home/mdempsky/crwd/src
Checking: /usr/local/google/home/mdempsky/crwd/src/third_party/stp/src
'third_party/stp/src/bindings/python/stp/__init__.py' has non-whitelisted license 'UNKNOWN'
'third_party/stp/src/windows/winports/sys/time.h' has non-whitelisted license 'UNKNOWN'
'third_party/stp/src/windows/winports/msc99hdr/unistd.h' has non-whitelisted license 'UNKNOWN'
'third_party/stp/src/windows/winports/compdep.h' has non-whitelisted license 'UNKNOWN'
'third_party/stp/src/scripts/lit-convert/smt2_test_convert.sh' has non-whitelisted license 'UNKNOWN'
'third_party/stp/src/scripts/lit-convert/cvc_test_convert.sh' has non-whitelisted license 'UNKNOWN'
@mdempsky
mdempsky / gist:605335ba85066e26a11e
Created November 7, 2014 01:41
stp checklicense errors as of 69b419ed06
$ ./tools/checklicenses/checklicenses.py third_party/stp/src
Using base directory: /usr/local/google/home/mdempsky/crwd/src
Checking: /usr/local/google/home/mdempsky/crwd/src/third_party/stp/src
'third_party/stp/src/bindings/python/stp/__init__.py' has non-whitelisted license 'UNKNOWN'
'third_party/stp/src/windows/winports/sys/time.h' has non-whitelisted license 'UNKNOWN'
'third_party/stp/src/windows/winports/msc99hdr/unistd.h' has non-whitelisted license 'UNKNOWN'
'third_party/stp/src/windows/winports/compdep.h' has non-whitelisted license 'UNKNOWN'
'third_party/stp/src/scripts/lit-convert/smt2_test_convert.sh' has non-whitelisted license 'UNKNOWN'
'third_party/stp/src/scripts/lit-convert/cvc_test_convert.sh' has non-whitelisted license 'UNKNOWN'
name \ time/op go1.before.txt go1.after2.txt go1.after3.txt
BinaryTree17-32 4.28s ±13% 4.32s ±12% 4.33s ±11%
Fannkuch11-32 2.80s ± 9% 2.82s ±11% 2.80s ±10%
FmtFprintfEmpty-32 57.6ns ±16% 59.2ns ±20% 58.0ns ±17%
FmtFprintfString-32 194ns ±13% 192ns ±16% 196ns ±15%
FmtFprintfInt-32 183ns ±12% 182ns ±16% 201ns ±12%
FmtFprintfIntInt-32 305ns ±18% 292ns ±13% 325ns ±13%
FmtFprintfPrefixedInt-32 273ns ±17% 259ns ±14% 284ns ±17%
FmtFprintfFloat-32 366ns ±18% 379ns ±15% 402ns ±17%
FmtManyArgs-32 1.21µs ±19% 1.18µs ±18% 1.20µs ±18%
@mdempsky
mdempsky / gist:54693578a8be8688bda5
Created February 21, 2016 23:37
listsort sanity check overhead
# runtime/internal/sys
0
# runtime/internal/atomic
1.291µs
# runtime
1.135796ms
# internal/race
1.38µs
# errors
1.726µs
@mdempsky
mdempsky / repro.go
Created March 28, 2016 22:06
Standalone repro for CL 21005 regression
package syscall
import (
"errors"
"unsafe"
)
var ErrBadStat = errors.New("malformed stat buffer")
const (
--- a/src/cmd/asm/internal/asm/asm.go
+++ b/src/cmd/asm/internal/asm/asm.go
- '9'
+ '9'
- '0'
+ '0'
- 'z'
+ 'z'
- '9' 0
+ '9' 0
@mdempsky
mdempsky / gist:1d312fbc33c7372e00933a864d935e8e
Created October 25, 2016 15:03
compile -newparser=(0|1) -bench | benchstat
name old time/op new time/op delta
Compile:runtime/internal/sys:fe:parse 3.02ms ±46% 3.03ms ±46% ~ (p=0.982 n=30+30)
Compile:runtime/internal/sys:fe:subtotal 20.9ms ±19% 21.0ms ±14% ~ (p=0.864 n=27+27)
Compile:runtime/internal/sys:be:subtotal 9.27ms ±31% 9.30ms ±22% ~ (p=0.993 n=26+27)
Compile:runtime/internal/sys:total 32.0ms ±23% 32.2ms ±17% ~ (p=0.864 n=27+27)
Compile:runtime/internal/atomic:fe:parse 2.58ms ±29% 2.55ms ±29% ~ (p=0.701 n=30+29)
Compile:runtime/internal/atomic:fe:subtotal 20.6ms ±20% 20.9ms ± 9% ~ (p=0.700 n=29+29)
Compile:runtime/internal/atomic:be:subtotal
@mdempsky
mdempsky / gist:86378ecef7367dea689dad5900646c99
Created October 25, 2016 15:07
benchstat -geomean total compile times -newparser=(0|1)
name old time/op new time/op delta
Compile:runtime/internal/sys:total 32.0ms ±23% 32.2ms ±17% ~ (p=0.864 n=27+27)
Compile:runtime/internal/atomic:total 30.4ms ±20% 30.4ms ±10% ~ (p=0.593 n=30+29)
Compile:runtime:total 1.51s ± 4% 1.51s ± 3% ~ (p=0.947 n=30+30)
Compile:errors:total 30.7ms ±11% 30.7ms ±12% ~ (p=0.853 n=29+29)
Compile:internal/race:total 29.2ms ±22% 29.5ms ±11% ~ (p=0.982 n=30+29)
Compile:sync/atomic:total 35.8ms ±15% 35.5ms ±18% ~ (p=0.886 n=30+29)
Compile:sync:total 64.1ms ±13% 64.2ms ±14% ~ (p=0.912 n=30+30)
Compile:io:t
package main
import (
"flag"
"os/exec"
"strings"
)
func main() {
flag.Parse()
archive/tar/reader.go:526:16: func literal (CLOSURE)
archive/tar/reader.go:543:15: func literal (CLOSURE)
cmd/compile/internal/gc/dcl.go:743:17: []*Node literal (SLICELIT)
cmd/compile/internal/gc/lex.go:108:24: "cmd/compile/internal/syntax".Error literal (CONVIFACE)
cmd/compile/internal/gc/lex.go:121:26: "cmd/compile/internal/syntax".Error literal (CONVIFACE)
cmd/compile/internal/gc/lex.go:126:24: "cmd/compile/internal/syntax".Error literal (CONVIFACE)
cmd/compile/internal/gc/lex.go:133:24: "cmd/compile/internal/syntax".Error literal (CONVIFACE)
cmd/compile/internal/gc/lex.go:141:24: "cmd/compile/internal/syntax".Error literal (CONVIFACE)
cmd/compile/internal/gc/lex.go:149:24: "cmd/compile/internal/syntax".Error literal (CONVIFACE)
cmd/compile/internal/gc/noder.go:1448:24: "cmd/compile/internal/syntax".Error literal (CONVIFACE)