Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bm (0.16 sec)

  1. cmd/metacache-bucket_test.go

    func Benchmark_bucketMetacache_findCache(b *testing.B) {
    	bm := newBucketMetacache("", false)
    	const elements = 50000
    	const paths = 100
    	if elements%paths != 0 {
    		b.Fatal("elements must be divisible by the number of paths")
    	}
    	var pathNames [paths]string
    	for i := range pathNames[:] {
    		pathNames[i] = fmt.Sprintf("prefix/%d", i)
    	}
    	for i := 0; i < elements; i++ {
    		bm.findCache(listPathOptions{
    			ID:           mustGetUUID(),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 25 23:29:45 GMT 2022
    - 1.8K bytes
    - Viewed (0)
Back to top