Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for millisecond (0.11 sec)

  1. internal/dsync/dsync_test.go

    	"github.com/google/uuid"
    )
    
    const (
    	testDrwMutexAcquireTimeout         = 250 * time.Millisecond
    	testDrwMutexRefreshCallTimeout     = 250 * time.Millisecond
    	testDrwMutexUnlockCallTimeout      = 250 * time.Millisecond
    	testDrwMutexForceUnlockCallTimeout = 250 * time.Millisecond
    	testDrwMutexRefreshInterval        = 100 * time.Millisecond
    )
    
    // TestMain initializes the testing framework
    func TestMain(m *testing.M) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 14:35:19 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. internal/kms/kms.go

    }
    
    var defaultLatencyBuckets = []time.Duration{
    	10 * time.Millisecond,
    	50 * time.Millisecond,
    	100 * time.Millisecond,
    	250 * time.Millisecond,
    	500 * time.Millisecond,
    	1000 * time.Millisecond, // 1s
    	1500 * time.Millisecond,
    	3000 * time.Millisecond,
    	5000 * time.Millisecond,
    	10000 * time.Millisecond, // 10s
    }
    
    // KMS is a connection to a key management system.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. cmd/local-locker_test.go

    								t.Fatal("failed:", err, ok)
    							}
    						}
    					}
    					start := time.Now()
    					l.expireOldLocks(time.Hour)
    					t.Logf("Scan Took: %v. Left: %d/%d", time.Since(start).Round(time.Millisecond), len(l.lockUID), len(l.lockMap))
    					if len(l.lockMap) != locks {
    						t.Fatalf("objects deleted, want %d != got %d", locks, len(l.lockMap))
    					}
    					if len(l.lockUID) != locks*readers {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. cni/test/install_cni.go

    				// We should have waited for the delayed conf
    				return fmt.Errorf("did not wait for valid config file")
    			}
    			return nil
    		}, retry.Delay(time.Millisecond), retry.Timeout(time.Millisecond*250))
    		var destFilenm string
    		if preConfFile != "" {
    			destFilenm = preConfFile
    		} else {
    			destFilenm = delayedConfFile
    		}
    		cp(delayedConfFile, tempCNIConfDir+"/"+destFilenm, t)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  5. internal/grid/benchmark_test.go

    				if spent > 0 && n > 0 {
    					// Since we are benchmarking n parallel servers we need to multiply by n.
    					// This will give an estimate of the total ops/s.
    					latency := float64(atomic.LoadInt64(&lat)) / float64(time.Millisecond)
    					b.ReportMetric(float64(n)*float64(ops)/spent.Seconds(), "vops/s")
    					b.ReportMetric(latency/float64(ops), "ms/op")
    				}
    			})
    		}
    	})
    	b.Run("rpc", func(b *testing.B) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. cni/pkg/install/cniconfig_test.go

    			}
    
    			if !c.chainedCNIPlugin {
    				// Standalone CNI plugin
    				parent := context.Background()
    				ctx1, cancel := context.WithTimeout(parent, 100*time.Millisecond)
    				defer cancel()
    				result, err := getCNIConfigFilepath(ctx1, c.specifiedConfName, tempDir, c.chainedCNIPlugin)
    				if err != nil {
    					assert.Equal(t, result, "")
    					if err == context.DeadlineExceeded {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. internal/grid/grid_test.go

    		start := time.Now()
    		if st.Requests != nil {
    			defer close(st.Requests)
    		}
    		// Fill up queue.
    		for sendReq {
    			select {
    			case st.Requests <- []byte("Hello"):
    				time.Sleep(10 * time.Millisecond)
    			default:
    				sendReq = false
    			}
    		}
    		cancel()
    		<-serverCanceled
    		t.Log("server cancel time:", time.Since(start))
    		clientEnd := <-clientCanceled
    		if !errors.Is(err, context.Canceled) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      /** Checks that thread does not terminate within the given millisecond delay. */
      void assertThreadStaysAlive(Thread thread, long millis) throws InterruptedException {
        // No need to optimize the failing case via Thread.join.
        delay(millis);
        assertTrue(thread.isAlive());
      }
    
      /**
       * Checks that the threads do not terminate within the default millisecond delay of {@code
       * timeoutMillis()}.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  9. cmd/bucket-metadata-sys.go

    	for index := range buckets {
    		index := index
    		g.Go(func() error {
    			// Sleep and stagger to avoid blocked CPU and thundering
    			// herd upon start up sequence.
    			time.Sleep(25*time.Millisecond + time.Duration(rand.Int63n(int64(100*time.Millisecond))))
    
    			_, _ = sys.objAPI.HealBucket(ctx, buckets[index], madmin.HealOpts{Recreate: true})
    			meta, err := loadBucketMetadata(ctx, sys.objAPI, buckets[index])
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      /** Checks that thread does not terminate within the given millisecond delay. */
      void assertThreadStaysAlive(Thread thread, long millis) throws InterruptedException {
        // No need to optimize the failing case via Thread.join.
        delay(millis);
        assertTrue(thread.isAlive());
      }
    
      /**
       * Checks that the threads do not terminate within the default millisecond delay of {@code
       * timeoutMillis()}.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top