Example #1
0
func BenchmarkEngineDelete(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.BenchmarkEngineDelete(b, "boltdb", e)
}
Example #2
0
func BenchmarkEngineDelete(b *testing.B) {
	e, _ := Init(nil)

	test.BenchmarkEngineDelete(b, "memory", e)
}