Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BenchmarkSplitSingleByteSeparator (0.49 sec)

  1. src/strings/strings_test.go

    					}
    				})
    			}
    		})
    	}
    }
    
    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++ {
    		Split(benchInputHard, "/")
    	}
    }
    
    func BenchmarkSplitMultiByteSeparator(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 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++ {
    		Split(benchInputHard, sep)
    	}
    }
    
    func BenchmarkSplitMultiByteSeparator(b *testing.B) {
    	sep := []byte("hello")
    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