mirror of
				https://github.com/golang/go.git
				synced 2025-10-31 16:50:58 +00:00 
			
		
		
		
	index/suffixarray: reduce size of a benchmark
A single iteration of BenchmarkSaveRestore runs for 5 seconds on my freebsd machine. 5 seconds looks like too long for a single iteration. This is the only benchmark that times out on freebsd-amd64-race builder. R=golang-codereviews, dave CC=golang-codereviews https://golang.org/cl/107340044
This commit is contained in:
		
							parent
							
								
									da1c2b182a
								
							
						
					
					
						commit
						b0c586a821
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -287,7 +287,7 @@ func BenchmarkNewIndexRepeat(b *testing.B) { | |||
| func BenchmarkSaveRestore(b *testing.B) { | ||||
| 	b.StopTimer() | ||||
| 	r := rand.New(rand.NewSource(0x5a77a1)) // guarantee always same sequence | ||||
| 	data := make([]byte, 10<<20)            // 10MB of data to index | ||||
| 	data := make([]byte, 1<<20)             // 1MB of data to index | ||||
| 	for i := range data { | ||||
| 		data[i] = byte(r.Intn(256)) | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dmitriy Vyukov
						Dmitriy Vyukov