Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkJoin (0.12 sec)

  1. src/strings/strings_test.go

    		b.Run(fmt.Sprintf("IndexPeriodic%d", skip), func(b *testing.B) {
    			s := Repeat("a"+Repeat(" ", skip-1), 1<<16/skip)
    			for i := 0; i < b.N; i++ {
    				Index(s, key)
    			}
    		})
    	}
    }
    
    func BenchmarkJoin(b *testing.B) {
    	vals := []string{"red", "yellow", "pink", "green", "purple", "orange", "blue"}
    	for l := 0; l <= len(vals); l++ {
    		b.Run(strconv.Itoa(l), func(b *testing.B) {
    			b.ReportAllocs()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
Back to top