Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 172 for 1000ms (0.03 sec)

  1. guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

     *
     * @author Louis Wasserman
     */
    @NullUnmarked
    public class ComparatorDelegationOverheadBenchmark {
      private final Integer[][] inputArrays = new Integer[0x100][];
    
      @Param({"10000"})
      int n;
    
      @BeforeExperiment
      void setUp() throws Exception {
        Random rng = new Random();
        for (int i = 0; i < 0x100; i++) {
          Integer[] array = new Integer[n];
          for (int j = 0; j < n; j++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Request.java

            if (timeoutMs == 0) {
                return 0L; // Persistent handles use 0
            }
            // Convert milliseconds to 100-nanosecond intervals
            // 1 ms = 10,000 * 100ns intervals
            long intervals = timeoutMs * 10000L;
            // MS-SMB2 timeout field is 4 bytes (uint32), so clamp to max value
            return Math.min(intervals, 0xFFFFFFFFL);
        }
    
        /**
         * Get the flags
         * @return the flags
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/EmptyIteratorTest.java

            long endTime = System.currentTimeMillis();
            long duration = endTime - startTime;
    
            // Then - should complete quickly (this is more of a performance indicator)
            assertTrue(duration < 1000, "Creating and using 10000 EmptyIterators should be fast (took " + duration + "ms)");
        }
    
        @Test
        @DisplayName("EmptyIterator should work correctly in nested iteration")
        void testNestedIteration() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(min(NUMBERS)).isEqualTo(LEAST);
        assertThat(Double.isNaN(min(VALUES))).isTrue();
      }
    
      public void testConstrainToRange() {
        assertThat(Doubles.constrainToRange(1.0, 0.0, 5.0)).isEqualTo(1.0);
        assertThat(Doubles.constrainToRange(1.0, 1.0, 5.0)).isEqualTo(1.0);
        assertThat(Doubles.constrainToRange(1.0, 3.0, 5.0)).isEqualTo(3.0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

            @Test
            @DisplayName("Should handle very long messages")
            void testVeryLongMessage() {
                StringBuilder longMessage = new StringBuilder();
                for (int i = 0; i < 10000; i++) {
                    longMessage.append("x");
                }
                String message = longMessage.toString();
    
                TransportException exception = new TransportException(message);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

          this.multiset = multiset;
          this.keys = keys;
        }
    
        @Override
        public int[] call() throws Exception {
          int iterations = 100000;
          int nKeys = keys.size();
          int[] deltas = new int[nKeys];
          Operation[] operations = Operation.values();
          for (int i = 0; i < iterations; i++) {
            int keyIndex = random.nextInt(nKeys);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/net/PercentEscaperTest.java

        assertEscaping(e, "%7F", '\u007f'); // del
        assertEscaping(e, "%C2%80", '\u0080'); // xx-00010,x-000000
        assertEscaping(e, "%DF%BF", '\u07ff'); // xx-11111,x-111111
        assertEscaping(e, "%E0%A0%80", '\u0800'); // xxx-0000,x-100000,x-00,0000
        assertEscaping(e, "%EF%BF%BF", '\uffff'); // xxx-1111,x-111111,x-11,1111
        assertUnicodeEscaping(e, "%F0%90%80%80", '\uD800', '\uDC00');
        assertUnicodeEscaping(e, "%F4%8F%BF%BF", '\uDBFF', '\uDFFF');
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. cmd/server-rlimit.go

    	sysMaxThreads, err := sys.GetMaxThreads()
    	if err == nil {
    		minioMaxThreads := (sysMaxThreads * 90) / 100
    		// Only set max threads if it is greater than the default one
    		if minioMaxThreads > 10000 {
    			debug.SetMaxThreads(minioMaxThreads)
    		}
    	}
    
    	var maxLimit uint64
    
    	// Set open files limit to maximum.
    	if _, maxLimit, err = sys.GetMaxOpenFileLimit(); err != nil {
    		return err
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Jul 02 15:09:36 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                assertEquals(4, written);
                assertEquals(4, SMBUtil.readInt2(minBuffer, 0));
    
                // Large buffer
                byte[] largeBuffer = new byte[10000];
                written = echoRequest.writeBytesWireFormat(largeBuffer, 5000);
                assertEquals(4, written);
                assertEquals(4, SMBUtil.readInt2(largeBuffer, 5000));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

            String str = stats.toString();
    
            assertNotNull(str);
            assertTrue(str.contains("test"));
            assertTrue(str.contains("CLOSED"));
            assertTrue(str.contains("100.00%"));
        }
    
        @Test
        @DisplayName("Test mixed success and failure pattern")
        void testMixedPattern() throws Exception {
            // Success
            circuitBreaker.call(() -> "success");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top