Skip to content

Instantly share code, notes, and snippets.

View rakyll's full-sized avatar

Jaana Dogan rakyll

View GitHub Profile
BenchmarkServeMux-8 17066 73096 ns/op 17280 B/op 360 allocs/op 0.000017759620741 g CO2/op
BenchmarkServeMux_SkipServe-8 31587 36864 ns/op 0 B/op 0 allocs/op 0.000008956586667 g CO2/op
BenchmarkClientServer-8 11899 108704 ns/op 4738 B/op 58 allocs/op 0.000026411045926 g CO2/op
BenchmarkClientServerParallel4-8 10000 158806 ns/op 9013 B/op 75 allocs/op 0.000038583976296 g CO2/op
BenchmarkServer-8 9694 114669 ns/op 2241 B/op 20 allocs/op 0.000027860320000 g CO2/op
BenchmarkClient-8 10318 108927 ns/op 3247 B/op 42 allocs/op 0.000026465226667 g CO2/op
BenchmarkServerFakeConnNoKeepAlive-8 64522 18643 ns/op 4659 B/op 50 allocs/op 0.000004529558519 g CO2/op
BenchmarkServerFakeConnWithKeepAlive-8 118477 10268 ns/op 2440 B/op 22 alloc
s = status --short --branch --ignore-submodules=untracked
find = log --pretty=\"format:%Cgreen%H\n%s\n\n%b\" --name-status --grep
amend = commit --amend --no-edit
undo = reset HEAD~
upload = "!git push rakyll $(git rev-parse --abbrev-ref HEAD)"
prune = "!git co master && git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
delete = branch -D
pr = "!git fetch origin pull/$1/head:pr$1"
sync = "!git pull -q -r origin master"
// Copyright 2016 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
// Command caption reads an audio file and outputs the transcript for it.
package main
import (
"fmt"
"io"