Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkQueryUnescape (0.26 sec)

  1. src/net/url/url_test.go

    				g = PathEscape(tc.unescaped)
    			}
    			b.StopTimer()
    			if g != tc.path {
    				b.Errorf("PathEscape(%q) == %q, want %q", tc.unescaped, g, tc.path)
    			}
    
    		})
    	}
    }
    
    func BenchmarkQueryUnescape(b *testing.B) {
    	for _, tc := range escapeBenchmarks {
    		b.Run("", func(b *testing.B) {
    			b.ReportAllocs()
    			var g string
    			for i := 0; i < b.N; i++ {
    				g, _ = QueryUnescape(tc.query)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
Back to top