remove benchmark.

This commit is contained in:
Raúl Kripalani 2020-11-10 17:50:21 +00:00
parent 379dd02fb6
commit d79ff24014

View File

@ -1,29 +0,0 @@
package blockstore
import (
"sync"
"testing"
)
func BenchmarkCast(b *testing.B) {
temp := Blockstore(NewTemporary())
for i := 0; i < b.N; i++ {
if v, ok := temp.(Viewer); ok {
_ = v
}
}
}
func BenchmarkOnce(b *testing.B) {
var viewer Viewer
var once sync.Once
temp := Blockstore(NewTemporary())
for i := 0; i < b.N; i++ {
once.Do(func() {
if v, ok := temp.(Viewer); ok {
viewer = v
}
})
_ = viewer
}
}