Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 3,877 for measure (0.2 sec)

  1. src/runtime/semasleep_test.go

    	// can keep the process hung indefinitely, as long as we signal it often
    	// enough.)
    	timeout := 10 * time.Second
    
    	// The subprocess begins sleeping for 1s after it writes to stdout, so measure
    	// the timeout from here (not from when we started creating the process).
    	// That should reduce noise from process startup overhead.
    	ready := time.Now()
    
    	// With the repro running, we can continuously send to it
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. .github/ISSUE_TEMPLATE/11-language-change.yml

          label: "Orthogonality: How does this change interact or overlap with existing features?"
          description: "Is the goal of this change a performance improvement? If so, what quantifiable improvement should we expect? How would we measure it?"
        validations:
          required: false
    
      - type: textarea
        id: learning-curve
        attributes:
          label: "Would this change make Go easier or harder to learn, and why?"
    
      - type: textarea
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 20:49:24 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. src/log/slog/internal/benchmarks/handlers.go

    // we simulate a lock-free queue by adding the Record to a ring buffer.
    // Omitting the locking makes this little more than a copy of the Record,
    // but that is a worthwhile thing to measure because Records are on the large
    // side. Since nothing actually reads from the ring buffer, it can handle an
    // arbitrary number of Records without either blocking or allocation.
    type asyncHandler struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 20:33:37 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. src/go/types/assignments.go

    		}
    		res = append(res, s)
    	}
    	return "(" + strings.Join(res, ", ") + ")"
    }
    
    func measure(x int, unit string) string {
    	if x != 1 {
    		unit += "s"
    	}
    	return fmt.Sprintf("%d %s", x, unit)
    }
    
    func (check *Checker) assignError(rhs []ast.Expr, l, r int) {
    	vars := measure(l, "variable")
    	vals := measure(r, "value")
    	rhs0 := rhs[0]
    
    	if len(rhs) == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/jmh/java/org/gradle/internal/reflect/HashingAlgorithmsBenchmark.java

        public void setup() throws CloneNotSupportedException {
            input = new byte[hashSize];
            random.nextBytes(input);
            processorFactory = HASHERS.get(type);
        }
    
        @Benchmark
        public void measure(Blackhole blackhole) {
            HashProcessor processor = processorFactory.create();
            processor.process(input, blackhole);
        }
    
        interface HashProcessor {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  6. src/internal/fuzz/worker_test.go

    		mem.setValue(encodedVals)
    		mem.header().count = 0
    
    		ws.fuzz(context.Background(), fuzzArgs{Limit: 1})
    	}
    }
    
    // BenchmarkWorkerPing acts as the coordinator and measures the time it takes
    // a worker to respond to N pings. This is a rough measure of our RPC latency.
    func BenchmarkWorkerPing(b *testing.B) {
    	if race.Enabled {
    		b.Skip("TODO(48504): fix and re-enable")
    	}
    	b.SetParallelism(1)
    	w := newWorkerForTest(b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

    ) : ConnectionListener() {
      val eventSequence: Deque<ConnectionEvent> = ConcurrentLinkedDeque()
    
      private val forbiddenLocks = mutableSetOf<Any>()
    
      /** The timestamp of the last taken event, used to measure elapsed time between events. */
      private var lastTimestampNs: Long? = null
    
      /** Confirm that the thread does not hold a lock on `lock` during the callback. */
      fun forbidLock(lock: Any) {
        forbiddenLocks.add(lock)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultWorkerLeaseService.java

            coordinationService.withStateLock(unlock(locks));
        }
    
        private void acquireLocks(final Iterable<? extends ResourceLock> locks) {
            if (containsProjectLocks(locks)) {
                projectLockStatistics.measure(new Runnable() {
                    @Override
                    public void run() {
                        coordinationService.withStateLock(lock(locks));
                    }
                });
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 04:43:28 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/assignments.go

    		}
    		res = append(res, s)
    	}
    	return "(" + strings.Join(res, ", ") + ")"
    }
    
    func measure(x int, unit string) string {
    	if x != 1 {
    		unit += "s"
    	}
    	return fmt.Sprintf("%d %s", x, unit)
    }
    
    func (check *Checker) assignError(rhs []syntax.Expr, l, r int) {
    	vars := measure(l, "variable")
    	vals := measure(r, "value")
    	rhs0 := rhs[0]
    
    	if len(rhs) == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise-plugin-performance/src/performanceTest/groovy/org/gradle/performance/BuildScanPluginPerformanceTest.groovy

                spoolDir().deleteDir()
            }
    
            @Override
            void afterBuild(BuildContext context, Throwable t) {
                def spoolDir = this.spoolDir()
                if (context.phase == Phase.MEASURE && (context.iteration == invocationSettings.buildCount) && spoolDir.exists()) {
                    def targetDirectory = new File("build/scan-dumps/$testId")
                    targetDirectory.deleteDir()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 19 09:04:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top