use Value type in hmap benchmarks
This commit is contained in:
		
							parent
							
								
									e4f0311afa
								
							
						
					
					
						commit
						0474ebd63d
					
				@ -103,7 +103,7 @@ func BenchmarkHmapGet_baseline(b *testing.B) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func benchmarkHmapGet(b *testing.B, numElems int) {
 | 
					func benchmarkHmapGet(b *testing.B, numElems int) {
 | 
				
			||||||
	h := make(map[int]int)
 | 
						h := make(map[int]Value)
 | 
				
			||||||
	for i := range iter(numElems) {
 | 
						for i := range iter(numElems) {
 | 
				
			||||||
		h[i] = i
 | 
							h[i] = i
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@ -160,7 +160,7 @@ func BenchmarkHmapSet_baseline(b *testing.B) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func benchmarkHmapSet(b *testing.B, numElems int) {
 | 
					func benchmarkHmapSet(b *testing.B, numElems int) {
 | 
				
			||||||
	h := make(map[int]int)
 | 
						h := make(map[int]Value)
 | 
				
			||||||
	for i := range iter(numElems) {
 | 
						for i := range iter(numElems) {
 | 
				
			||||||
		h[i] = i
 | 
							h[i] = i
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user