Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pkg/queue/metrics_test.go

    // limitations under the License.
    package queue
    
    import (
    	"sync"
    	"testing"
    	"time"
    
    	"istio.io/istio/pilot/pkg/features"
    )
    
    func BenchmarkMetricsQueue(b *testing.B) {
    	features.EnableControllerQueueMetrics = true
    	q := NewQueue(1 * time.Microsecond)
    	s := make(chan struct{})
    	go q.Run(s)
    	for n := 0; n < b.N; n++ {
    		wg := sync.WaitGroup{}
    		wg.Add(1)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top