Skip to content

Instantly share code, notes, and snippets.

package cache
import (
"bytes"
"encoding/gob"
"time"
"github.com/bradfitz/gomemcache/memcache"
)
package bench_test
import "testing"
func BenchmarkByteArray(b *testing.B) {
for n := 0; n < b.N; n++ {
GetBytes()
}
}
import (
"bytes"
"encoding/gob"
"time"
"github.com/bradfitz/gomemcache/memcache"
"golang.org/x/net/context"
)