print the cache policy for bench
This commit is contained in:
parent
fc843205d5
commit
431e42209c
|
|
@ -221,7 +221,7 @@ func testBench() {
|
||||||
}
|
}
|
||||||
|
|
||||||
cost := time.Since(tStart)
|
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) {
|
func createSearcher(dbPath string, cachePolicy string) (*xdb.Searcher, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue