Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BenchmarkCountHard3 (0.71 sec)

  1. src/strings/strings_test.go

    func BenchmarkCountHard1(b *testing.B) { benchmarkCountHard(b, "<>") }
    func BenchmarkCountHard2(b *testing.B) { benchmarkCountHard(b, "</pre>") }
    func BenchmarkCountHard3(b *testing.B) { benchmarkCountHard(b, "<b>hello world</b>") }
    
    var benchInputTorture = Repeat("ABC", 1<<10) + "123" + Repeat("ABC", 1<<10)
    var benchNeedleTorture = Repeat("ABC", 1<<10+1)
    
    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 BenchmarkCountHard1(b *testing.B) { benchmarkCountHard(b, []byte("<>")) }
    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)
    	}
    }
    
    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