Skip to content

Instantly share code, notes, and snippets.

View UlricQin's full-sized avatar

ulricqin UlricQin

View GitHub Profile
@UlricQin
UlricQin / benchmark.go
Created February 25, 2017 15:01 — forked from everbeen/benchmark.go
BSON vs. Gob vs. MessagePack encoding & decoding benchmark
package main
import (
"bytes"
"encoding/gob"
"fmt"
"github.com/ugorji/go/codec"
"io/ioutil"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"