Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for BenchmarkMod (0.1 sec)

  1. src/math/all_test.go

    		x = Max(10, 3)
    	}
    	GlobalF = x
    }
    
    func BenchmarkMin(b *testing.B) {
    	x := 0.0
    	for i := 0; i < b.N; i++ {
    		x = Min(10, 3)
    	}
    	GlobalF = x
    }
    
    func BenchmarkMod(b *testing.B) {
    	x := 0.0
    	for i := 0; i < b.N; i++ {
    		x = Mod(10, 3)
    	}
    	GlobalF = x
    }
    
    func BenchmarkFrexp(b *testing.B) {
    	x := 0.0
    	y := 0
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  2. pkg/api/testing/deep_copy_test.go

    			},
    		},
    	},
    }
    
    func BenchmarkPodCopy(b *testing.B) {
    	var result *api.Pod
    	for i := 0; i < b.N; i++ {
    		result = benchmarkPod.DeepCopy()
    	}
    	if !apiequality.Semantic.DeepEqual(benchmarkPod, *result) {
    		b.Fatalf("Incorrect copy: expected %v, got %v", benchmarkPod, *result)
    	}
    }
    
    func BenchmarkNodeCopy(b *testing.B) {
    	data, err := os.ReadFile("node_example.json")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 14:16:53 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  3. pkg/api/testing/conversion_test.go

    	for i := range items {
    		apiObjectFuzzer.Fuzz(&items[i])
    		items[i].Spec.InitContainers = nil
    		items[i].Status.InitContainerStatuses = nil
    	}
    
    	// add a fixed item
    	items = append(items, benchmarkPod)
    	width := len(items)
    
    	scheme := legacyscheme.Scheme
    	for i := 0; i < b.N; i++ {
    		pod := &items[i%width]
    		versionedObj, err := scheme.UnsafeConvertToVersion(pod, schema.GroupVersion{Group: "", Version: "v1"})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 30 06:49:09 UTC 2021
    - 3.9K bytes
    - Viewed (0)
Back to top