From 431e42209cadb4d5507ee973beab42a1c60abba9 Mon Sep 17 00:00:00 2001 From: Lion Date: Wed, 22 Jun 2022 18:48:06 +0800 Subject: [PATCH] print the cache policy for bench --- binding/golang/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/golang/main.go b/binding/golang/main.go index 8827be2..d9e59a6 100644 --- a/binding/golang/main.go +++ b/binding/golang/main.go @@ -221,7 +221,7 @@ func testBench() { } cost := time.Since(tStart) - fmt.Printf("Bench finished, {total: %d, took: %s, cost: %d ns/op}\n", count, cost, cost.Nanoseconds()/int64(count)) + fmt.Printf("Bench finished, {cachePolicy: %s, total: %d, took: %s, cost: %d ns/op}\n", cachePolicy, count, cost, cost.Nanoseconds()/int64(count)) } func createSearcher(dbPath string, cachePolicy string) (*xdb.Searcher, error) {