iteration: add benchmark test
This commit is contained in:
		@ -10,3 +10,9 @@ func TestRepeat(t *testing.T) {
 | 
			
		||||
		t.Errorf("expected %q but got %q", expected, repeated)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func BenchmarkRepeat(b *testing.B) {
 | 
			
		||||
	for i := 0; i < b.N; i++ {
 | 
			
		||||
		Repeat("a")
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user