Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for numGCs (0.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/dropped_requests_tracker_test.go

    	tracker := newDroppedRequestsTracker(fakeClock.Now)
    
    	startCh := make(chan struct{})
    	wg := sync.WaitGroup{}
    	numPLs := 5
    	// For all `numPLs` priority levels, create b.N workers each
    	// of which will try to record a dropped request every 100ms
    	// with a random jitter.
    	for i := 0; i < numPLs; i++ {
    		plName := fmt.Sprintf("priority-level-%d", i)
    		for i := 0; i < b.N; i++ {
    			wg.Add(1)
    			go func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 26 13:50:25 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. test/typeparam/issue51925.go

    	if x < y {
    		return x
    	}
    	return y
    }
    
    // Min returns the minimum element of `nums`.
    func Min[T IntLike, NumSlice ~[]T](nums NumSlice) T {
    	if len(nums) == 0 {
    		return T(0)
    	}
    	return Reduce(min[T], nums, nums[0])
    }
    
    // VarMin is the variadic version of Min.
    func VarMin[T IntLike](nums ...T) T {
    	return Min(nums)
    }
    
    type myInt int
    
    func main() {
    	fmt.Println(VarMin(myInt(1), myInt(2)))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 963 bytes
    - Viewed (0)
  3. docs/debugging/hash-set/main.go

    	if cardinality <= 0 {
    		// Returns an empty int slice for cardinality < 0.
    		return nil
    	}
    
    	nums := make([]int, cardinality)
    	keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable)
    
    	start := int(keyCrc % uint32(cardinality))
    	for i := 1; i <= cardinality; i++ {
    		nums[i-1] = 1 + ((start + i) % cardinality)
    	}
    	return nums
    }
    
    var (
    	file, object, deploymentID, prefix string
    	setCount, shards                   int
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  4. src/internal/types/testdata/fixedbugs/issue59740.go

    type List[T any] func(T, func(T, List[T]) T) T
    
    func nil[T any](n T, _ List[T]) T        { return n }
    func cons[T any](h T, t List[T]) List[T] { return func(n T, f func(T, List[T]) T) T { return f(h, t) } }
    
    func nums[T any](t T) List[T] {
    	return cons(t, cons(t, nil /* ERROR "type func(n T, _ List[T]) T of nil[T] does not match inferred type List[T] for List[T]" */ [T]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 12:32:24 UTC 2023
    - 800 bytes
    - Viewed (0)
Back to top