Skip to content

Instantly share code, notes, and snippets.

View dr2chase's full-sized avatar
💭
I am working on Go stuff

David Chase dr2chase

💭
I am working on Go stuff
View GitHub Profile
@dr2chase
dr2chase / transform.(*SBRT).Inverse.html
Created May 17, 2021 20:07
1.16, ssa.html for transform.(*SBRT).Inverse
This file has been truncated, but you can view the full file.
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style>
body {
font-size: 14px;
font-family: Arial, sans-serif;
}
h1 {
@dr2chase
dr2chase / transform.(*SBRT).Inverse.html
Created May 17, 2021 20:05
1.17, ssa.html for transform.(*SBRT).Inverse
This file has been truncated, but you can view the full file.
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style>
body {
font-size: 14px;
font-family: Arial, sans-serif;
}
h1 {
@dr2chase
dr2chase / transform.(*SBRT).Forward.html
Created May 17, 2021 20:03
1.17, ssa.html for transform.(*SBRT).Forward
This file has been truncated, but you can view the full file.
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style>
body {
font-size: 14px;
font-family: Arial, sans-serif;
}
h1 {
@dr2chase
dr2chase / transform.(*SBRT).Forward.html
Created May 17, 2021 20:00
1.16, ssa.html for transform.(*SBRT).Forward
This file has been truncated, but you can view the full file.
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style>
body {
font-size: 14px;
font-family: Arial, sans-serif;
}
h1 {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Performance Result Comparison</title>
<style type="text/css">
#header h1 {
display: inline;
}
#search {
@dr2chase
dr2chase / gogollvm3.log
Created July 9, 2019 15:28
Raw compilation and benchmark results, Go vs Gollvm -O3 (including stdlib)
This file has been truncated, but you can view the full file.
( GOPATH=/usr/local/google/home/drchase/work/bent/gopath GO111MODULE=auto go get -d -t -v github.com/ethereum/go-ethereum/common/bitutil )
( GOPATH=/usr/local/google/home/drchase/work/bent/gopath GO111MODULE=auto go get -d -t -v github.com/ethereum/go-ethereum/swarm/storage )
There was an error running 'go get', stderr = github.com/ethereum/go-ethereum (download)
package github.com/ethereum/go-ethereum/swarm/storage: cannot find package "github.com/ethereum/go-ethereum/swarm/storage" in any of:
/usr/local/google/home/drchase/work/go/src/github.com/ethereum/go-ethereum/swarm/storage (from $GOROOT)
/usr/local/google/home/drchase/work/bent/gopath/src/github.com/ethereum/go-ethereum/swarm/storage (from $GOPATH)
DISABLING benchmark ethereum_storage
( GOPATH=/usr/local/google/home/drchase/work/bent/gopath GO111MODULE=auto go get -d -t -v github.com/ethereum/go-ethereum/consensus/ethash )
( GOPATH=/usr/local/google/home/drchase/work/bent/gopath GO111MODULE=auto go get -d -t -v github.com/ethereum/go-ethereum/core/
@dr2chase
dr2chase / GolangBostonMeetup_2017_06_debugging.md
Created June 28, 2017 19:49
Notes from the Golang Boston Meetup 2017-06-27 debugging meeting

Here are my notes from the Golang Boston Meetup 2017-06-27 debugging meeting, such as they are. Corrections/elaborations welcome.

Notes from debugging group. TLDR: fmt.Println is still very common; nobody in the room knew everything -- i.e., there's debugging tricks and techniques that you probably don't know; there's ever so much "upside potential" in the current tools.

Techniques mentioned:

  • fmt.Println
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dr2chase
dr2chase / ex3.bash
Created May 26, 2017 15:44
Sample script for running experiment.bash on several branches
#!/bin/bash
git change master
variant=master_2017_05_24 bash -x ./experiment.bash
echo
git change rotate_in_layout
variant=rotate_in_layout bash -x ./experiment.bash
echo
@dr2chase
dr2chase / experiment.bash
Last active May 26, 2017 15:45
Script for running a number of benchmarks comparing performance of GOEXPERIMENT=preemptibleloops
#!/bin/bash
# Run with environment variable "variant" set to some useful string legal in a file name.
N=25
if [[ `arch` == "ppc64le" ]] ; then
dohttp=
else
dohttp=1
done