Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BenchmarkSplitEmptySeparator (0.43 sec)

  1. src/strings/strings_test.go

    					b.SetBytes(int64(j))
    					data := sd.data[:j]
    					for i := 0; i < b.N; i++ {
    						FieldsFunc(data, unicode.IsSpace)
    					}
    				})
    			}
    		})
    	}
    }
    
    func BenchmarkSplitEmptySeparator(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		Split(benchInputHard, "")
    	}
    }
    
    func BenchmarkSplitSingleByteSeparator(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    func BenchmarkCountHard2(b *testing.B) { benchmarkCountHard(b, []byte("</pre>")) }
    func BenchmarkCountHard3(b *testing.B) { benchmarkCountHard(b, []byte("<b>hello world</b>")) }
    
    func BenchmarkSplitEmptySeparator(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		Split(benchInputHard, nil)
    	}
    }
    
    func BenchmarkSplitSingleByteSeparator(b *testing.B) {
    	sep := []byte("/")
    	for i := 0; i < b.N; i++ {
    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