Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkComplexAlgMap (0.19 sec)

  1. src/runtime/map_benchmark_test.go

    				}
    			}
    		})
    	}
    }
    
    type ComplexAlgKey struct {
    	a, b, c int64
    	_       int
    	d       int32
    	_       int
    	e       string
    	_       int
    	f, g, h int64
    }
    
    func BenchmarkComplexAlgMap(b *testing.B) {
    	m := make(map[ComplexAlgKey]bool)
    	var k ComplexAlgKey
    	m[k] = true
    	for i := 0; i < b.N; i++ {
    		_ = m[k]
    	}
    }
    
    func BenchmarkGoMapClear(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 16:41:16 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top