func BenchmarkRefDerefDeferred(b *testing.B) {
	g := NewGoRef()
	for n := 0; n < b.N; n++ {
		r := g.Ref("hello")
		defer r.Deref()
	}
}
BenchmarkRefDeref -- Measures how long an empty Ref().Deref() call takes (doing the Deref() in a defer statement)
package goref
import (
	"fmt"
	"testing"
	"time"
)
var nsec int64
var snap Snapshot
func BenchmarkMeasureTime(b *testing.B) {
	for n := 0; n < b.N; n++ {
		start := time.Now()
		end := time.Now()
		nsec = end.Sub(start).Nanoseconds()
	}
}
func BenchmarkRefDeref(b *testing.B) {
	g := NewGoRef()
	for n := 0; n < b.N; n++ {
		g.Ref("hello").Deref()
	}
}