Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkScaledValueSmall (0.33 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/scale_int_test.go

    		if got != tt.want {
    			t.Errorf("#%d: got = %v, want %v", i, got, tt.want)
    		}
    		if tt.unscaled.Cmp(old) != 0 {
    			t.Errorf("#%d: unscaled = %v, want %v", i, tt.unscaled, old)
    		}
    	}
    }
    
    func BenchmarkScaledValueSmall(b *testing.B) {
    	s := big.NewInt(1000)
    	for i := 0; i < b.N; i++ {
    		scaledValue(s, 3, 0)
    	}
    }
    
    func BenchmarkScaledValueLarge(b *testing.B) {
    	s := big.NewInt(math.MaxInt64)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 11 03:04:14 UTC 2018
    - 2.1K bytes
    - Viewed (0)
Back to top