Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for BenchmarkUnmarshal (0.33 sec)

  1. src/encoding/asn1/marshal_test.go

    		t.Error("Unmarshal returned extra garbage")
    	}
    	if !reflect.DeepEqual(expectedOrder, resultSet) {
    		t.Errorf("Unexpected SET content. got: %s, want: %s", resultSet, expectedOrder)
    	}
    }
    
    func BenchmarkUnmarshal(b *testing.B) {
    	b.ReportAllocs()
    
    	type testCase struct {
    		in  []byte
    		out any
    	}
    	var testData []testCase
    	for _, test := range unmarshalTestData {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 10K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/pruning/algorithm_test.go

    		//nolint:staticcheck //iccheck // SA4010 the result of append is never used, it's acceptable since in benchmark testing.
    		instances = append(instances, runtime.DeepCopyJSON(obj))
    	}
    }
    
    func BenchmarkUnmarshal(b *testing.B) {
    	b.StopTimer()
    	b.ReportAllocs()
    
    	instances := make([]map[string]interface{}, b.N)
    
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. src/encoding/xml/marshal_test.go

    	}
    }
    
    func BenchmarkMarshal(b *testing.B) {
    	b.ReportAllocs()
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			Marshal(atomValue)
    		}
    	})
    }
    
    func BenchmarkUnmarshal(b *testing.B) {
    	b.ReportAllocs()
    	xml := []byte(atomXML)
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			Unmarshal(xml, &Feed{})
    		}
    	})
    }
    
    // golang.org/issue/6556
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
Back to top