This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"math/rand" | |
"sync/atomic" | |
"time" | |
) | |
const ( | |
numGs = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"math/rand" | |
"runtime" | |
"sync/atomic" | |
"time" | |
) | |
const ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PYTHONPATH=/home/austin/r/stp/build/bindings/python | |
import sys, collections | |
import sym | |
_PageSize = 8192 | |
_PageShift = 13 | |
_HeapAllocChunk = 1 << 20 | |
_MaxArena32 = 2 << 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 #&& |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compute the object graph of a Go heap and find the path from a root | |
# to a target address. | |
import gdb | |
import collections | |
class SliceValue: | |
"""Wrapper for slice values.""" | |
def __init__(self, val): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gdb | |
import re | |
import tempfile | |
import os | |
import subprocess | |
import shutil | |
import struct | |
NOTE_HDR = struct.Struct("III") | |
USER_REGS = struct.Struct(27*"Q") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires https://go-review.googlesource.com/c/38320 | |
package popcnt | |
import ( | |
"math/bits" | |
"testing" | |
) | |
var sink interface{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Read gcpacertrace log from stdin and plot pacing. | |
import sys | |
import subprocess | |
gp = subprocess.Popen(["gnuplot", "-persist", "-e", """ | |
set xrange [0:2]; | |
set yrange [0:1]; | |
set xlabel "Heap ratio (h)"; | |
set ylabel "GC CPU (u_a)"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2017 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package main | |
import ( | |
"image/color" | |
"math" | |
"os" |
OlderNewer