Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkByteStringMatch (0.3 sec)

  1. src/strings/replace_test.go

    	}
    }
    
    func BenchmarkByteByteMatch(b *testing.B) {
    	str := Repeat("a", 100) + Repeat("b", 100)
    	for i := 0; i < b.N; i++ {
    		capitalLetters.Replace(str)
    	}
    }
    
    func BenchmarkByteStringMatch(b *testing.B) {
    	str := "<" + Repeat("a", 99) + Repeat("b", 99) + ">"
    	for i := 0; i < b.N; i++ {
    		htmlEscaper.Replace(str)
    	}
    }
    
    func BenchmarkHTMLEscapeNew(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 22:53:05 UTC 2017
    - 14.1K bytes
    - Viewed (0)
Back to top