Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for blackholed (0.22 sec)

  1. src/net/dial_test.go

    			c.Close()
    		}()
    	}
    	wg.Wait()
    	dss.teardown()
    	after := sw.Sockets()
    	if len(after) != len(before) {
    		t.Errorf("got %d; want %d", len(after), len(before))
    	}
    }
    
    // Define a pair of blackholed (IPv4, IPv6) addresses, for which dialTCP is
    // expected to hang until the timeout elapses. These addresses are reserved
    // for benchmarking by RFC 6890.
    const (
    	slowDst4 = "198.18.0.254"
    	slowDst6 = "2001:2::254"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/ChmodBenchmark.java

        }
    
        @Benchmark
        public void createFileJava6(Blackhole blackhole) throws IOException {
            File file = new File(tempDirFile, "file-" + counter.incrementAndGet());
            boolean created = file.createNewFile();
            blackhole.consume(created);
        }
    
        @Benchmark
        public void createFileJava7(Blackhole blackhole) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 12:13:32 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/jmh/java/org/gradle/internal/reflect/HashingAlgorithmsBenchmark.java

            processorFactory = HASHERS.get(type);
        }
    
        @Benchmark
        public void measure(Blackhole blackhole) {
            HashProcessor processor = processorFactory.create();
            processor.process(input, blackhole);
        }
    
        interface HashProcessor {
            void process(byte[] input, Blackhole blackhole);
        }
    
        interface HashProcessorFactory {
            HashProcessor create();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/FileWalkingBenchmark.java

                path = path.getParent();
                blackhole.consume(Files.exists(path));
            }
            blackhole.consume(path);
        }
    
        @Benchmark
        public void java6exists(Blackhole blackhole) {
            File file = missing ? missingFile : existingFile;
            blackhole.consume(file.exists());
        }
    
        @Benchmark
        public void java7exists(Blackhole blackhole) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/jmh/java/org/gradle/internal/reflect/CachedConstructorsBenchmark.java

            }
        }
    
        private int i;
    
        @Benchmark
        public void uncached(Blackhole bh) {
            bh.consume(randomClasses[++i % ARR_LEN].getConstructors());
        }
    
        @Benchmark
        public void cached(Blackhole bh) {
            bh.consume(cache.get(randomClasses[++i % ARR_LEN], EMPTY));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/jmh/java/org/gradle/internal/deprecation/DeprecationIdCreationBenchmark.java

    import org.openjdk.jmh.infra.Blackhole;
    
    import static org.gradle.internal.deprecation.DeprecationMessageBuilder.createDefaultDeprecationId;
    
    @SuppressWarnings("Since15")
    @Threads(2)
    @Warmup(iterations = 5)
    @Measurement(iterations = 5)
    @State(Scope.Benchmark)
    public class DeprecationIdCreationBenchmark {
    
        @Benchmark
        public void idCreation(Blackhole bh) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 06:13:13 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. pilot/pkg/model/listener.go

    	// VirtualOutboundBlackholeFilterChainName is the name of the filter chain to blackhole undesired traffic
    	VirtualOutboundBlackholeFilterChainName = "virtualOutbound-blackhole"
    	// VirtualInboundBlackholeFilterChainName is the name of the filter chain to blackhole undesired traffic
    	VirtualInboundBlackholeFilterChainName = "virtualInbound-blackhole"
    
    	// VirtualInboundListenerName is the name for traffic capture listener
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 10 17:24:55 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/jmh/java/org/gradle/api/internal/provider/EvaluationContextPerfTest.java

    import org.openjdk.jmh.annotations.OutputTimeUnit;
    import org.openjdk.jmh.annotations.Scope;
    import org.openjdk.jmh.annotations.Setup;
    import org.openjdk.jmh.annotations.State;
    import org.openjdk.jmh.infra.Blackhole;
    
    import java.util.concurrent.TimeUnit;
    
    @State(Scope.Thread)
    @OutputTimeUnit(TimeUnit.MILLISECONDS)
    @Fork(2)
    public class EvaluationContextPerfTest {
        private final PropertyHost host = producer -> null;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 20:21:31 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. platforms/core-execution/build-cache/src/jmh/java/org/gradle/OptionalBenchmark.java

    import org.openjdk.jmh.annotations.Measurement;
    import org.openjdk.jmh.annotations.Scope;
    import org.openjdk.jmh.annotations.State;
    import org.openjdk.jmh.annotations.Warmup;
    import org.openjdk.jmh.infra.Blackhole;
    
    import java.nio.file.Path;
    import java.nio.file.Paths;
    import java.util.Optional;
    
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    /*
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/core-runtime/native/src/jmh/java/org/gradle/internal/nativeintegration/filesystem/FileMetadataAccessorBenchmark.java

        }
    
        @Benchmark
        public void stat_missing_file(Blackhole bh) {
            bh.consume(getAccessor(accessorClassName).stat(missing));
        }
    
        @Benchmark
        public void stat_directory(Blackhole bh) {
            bh.consume(getAccessor(accessorClassName).stat(directory));
        }
    
        @Benchmark
        public void stat_existing(Blackhole bh) {
            bh.consume(getAccessor(accessorClassName).stat(realFile));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top