Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for bw (0.16 sec)

  1. src/bufio/bufio_test.go

    	bs := []byte(str)
    	for i := 0; i < b.N; i++ {
    		bw := NewWriter(io.Discard)
    		bw.Flush()
    		bw.WriteByte('a')
    		bw.Flush()
    		bw.WriteRune('B')
    		bw.Flush()
    		bw.Write(bs)
    		bw.Flush()
    		bw.WriteString(str)
    		bw.Flush()
    	}
    }
    
    func BenchmarkWriterFlush(b *testing.B) {
    	b.ReportAllocs()
    	bw := NewWriter(io.Discard)
    	str := strings.Repeat("x", 50)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/cmd/api/main_test.go

    		}
    		comma := strings.Index(f, ",")
    		for cname := range cmap {
    			f2 := fmt.Sprintf("%s (%s)%s", f[:comma], cname, f[comma:])
    			features = append(features, f2)
    		}
    	}
    
    	bw := bufio.NewWriter(os.Stdout)
    	defer bw.Flush()
    
    	var required []string
    	for _, file := range checkFiles {
    		required = append(required, fileFeatures(file, needApproval(file))...)
    	}
    	for _, file := range nextFiles {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top