func BenchmarkTxIncr(b *testing.B) { f, _ := ioutil.TempFile("", "") defer func() { os.Remove(f.Name()) }() e, err := Init(storage.Options{ "path": f.Name(), }) if err != nil { b.Fatal(err) } f.Close() test.BenchmarkTxIncr(b, "boltdb", e) }
func BenchmarkTxIncr(b *testing.B) { e, _ := Init(nil) test.BenchmarkTxIncr(b, "memory", e) }