Skip to content

Instantly share code, notes, and snippets.

View aclements's full-sized avatar

Austin Clements aclements

View GitHub Profile
diff --git a/benchmark/Dockerfile b/benchmark/Dockerfile
index f1c7bc4..d05de8d 100644
--- a/benchmark/Dockerfile
+++ b/benchmark/Dockerfile
@@ -8,9 +8,13 @@ RUN mkdir -p /go/src/github.com/grafana
RUN cd /go/src/github.com/grafana && \
git clone https://github.com/raintank/grafana-api-golang-client.git && \
cd grafana-api-golang-client && \
- git checkout raintank #&& \
+ git checkout raintank #&&
@aclements
aclements / sim.py
Created November 17, 2015 14:39
Symbolic bug finder for golang/go#13143
# PYTHONPATH=/home/austin/r/stp/build/bindings/python
import sys, collections
import sym
_PageSize = 8192
_PageShift = 13
_HeapAllocChunk = 1 << 20
_MaxArena32 = 2 << 30
package main
import (
"math/rand"
"runtime"
"sync/atomic"
"time"
)
const (
package main
import (
"math/rand"
"sync/atomic"
"time"
)
const (
numGs = 10
@aclements
aclements / scale.go
Created June 26, 2015 15:07
Scale down by 2x using x/image/draw
package main
import (
"flag"
"fmt"
"image"
"image/png"
"log"
"os"