Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for BenchmarkIndexAnyASCII (0.18 sec)

  1. src/cmd/internal/test2json/testdata/framebig.json

    {"Action":"run","Test":"BenchmarkIndexAnyASCII"}
    {"Action":"output","Test":"BenchmarkIndexAnyASCII","Output":"=== RUN   BenchmarkIndexAnyASCII\n"}
    {"Action":"output","Test":"BenchmarkIndexAnyASCII","Output":"BenchmarkIndexAnyASCII\n"}
    {"Action":"run","Test":"BenchmarkIndexAnyASCII/1:1"}
    {"Action":"output","Test":"BenchmarkIndexAnyASCII/1:1","Output":"=== RUN   BenchmarkIndexAnyASCII/1:1\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  2. src/strings/strings_test.go

    			})
    		}
    	}
    }
    
    func BenchmarkRepeatSpaces(b *testing.B) {
    	b.ReportAllocs()
    	for i := 0; i < b.N; i++ {
    		Repeat(" ", 2)
    	}
    }
    
    func BenchmarkIndexAnyASCII(b *testing.B) {
    	x := Repeat("#", 2048) // Never matches set
    	cs := "0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz"
    	for k := 1; k <= 2048; k <<= 4 {
    		for j := 1; j <= 64; j <<= 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    			}
    
    			for i := 0; i < n; i++ {
    				y[i] = 'a'
    			}
    
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				Compare(x, y)
    			}
    		})
    	}
    }
    
    func BenchmarkIndexAnyASCII(b *testing.B) {
    	x := Repeat([]byte{'#'}, 2048) // Never matches set
    	cs := "0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz"
    	for k := 1; k <= 2048; k <<= 4 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top