print the cache policy for bench

This commit is contained in:
Lion 2022-06-22 18:48:06 +08:00
parent fc843205d5
commit 431e42209c

View File

@ -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) {