Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 140 for approx (0.21 sec)

  1. src/internal/trace/mud_test.go

    			inv, ok2 := mud.invCumulativeSum(trackMass)
    
    			if mass < trackMass {
    				if ok {
    					t.Errorf("approx(%g) = [%g, %g), but mass = %g", trackMass, l, u, mass)
    				}
    				if ok2 {
    					t.Errorf("exact(%g) = %g, but mass = %g", trackMass, inv, mass)
    				}
    			} else {
    				if !ok {
    					t.Errorf("approx(%g) failed, but mass = %g", trackMass, mass)
    				}
    				if !ok2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. testing/internal-testing/src/test/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpecTest.groovy

            }
            def failure = null
            try {
                assert operation.runAndWait.duration in approx(5000)
            } catch (AssertionError e) {
                failure = e
            }
    
            then:
            failure != null
            failure.message.contains('operation.runAndWait.duration in approx(5000)')
        }
    
        def "can use instants to test that method executes one thing at a time"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/Range.groovy

    /**
     * A range of time.
     */
    class Range {
        private final long millis
    
        Range(long millis) {
            this.millis = millis
        }
    
        @Override
        String toString() {
            return "[approx $millis millis]"
        }
    
        boolean isCase(Duration duration) {
            def actualMillis = duration.millis
            return actualMillis > millis - 500 && actualMillis < millis + 2000
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpec.groovy

         */
        void start(Runnable action) {
            executor.execute(action)
        }
    
        /**
         * Returns a range that contains the given milliseconds +/- some error margin
         */
        Range approx(long millis) {
            return new Range(millis)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/DefaultExecutorFactoryTest.groovy

            }
    
            then:
            IllegalStateException e = thrown()
            e.message == 'Timeout waiting for concurrent jobs to complete.'
    
            and:
            operation.stop.duration in approx(timeoutMs)
        }
    
        def stopRethrowsFirstExecutionException() {
            given:
            def failure1 = new RuntimeException()
            def runnable1 = {
                instant.broken1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. cmd/erasure-coding.go

    // produces an incorrect value it fails with a hard error.
    //
    // erasureSelfTest tries to catch any issue in the erasure implementation
    // early instead of silently corrupting data.
    func erasureSelfTest() {
    	// Approx runtime ~1ms
    	var testConfigs [][2]uint8
    	for total := uint8(4); total < 16; total++ {
    		for data := total / 2; data < total; data++ {
    			parity := total - data
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc

        SymbolTable table(root);
        (void)table.renameToUnique(func, {});
    
        rewriter.setInsertionPointAfter(output_mul);
        auto composite_attrs = rewriter.getDictionaryAttr(
            {rewriter.getNamedAttr("approx", rewriter.getBoolAttr(false))});
        auto composite_op = rewriter.create<stablehlo::CompositeOp>(
            output_mul.getLoc(), func.getResultTypes()[0],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. test/codegen/math.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package codegen
    
    import "math"
    
    var sink64 [8]float64
    
    func approx(x float64) {
    	// amd64/v2:-".*x86HasSSE41" amd64/v3:-".*x86HasSSE41"
    	// amd64:"ROUNDSD\t[$]2"
    	// s390x:"FIDBR\t[$]6"
    	// arm64:"FRINTPD"
    	// ppc64x:"FRIP"
    	// wasm:"F64Ceil"
    	sink64[0] = math.Ceil(x)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. src/runtime/histogram.go

    	//
    	// Following this pattern, bucket 38 will have the bit 46 set. We don't
    	// have any buckets for higher values, so we spill the rest into an overflow
    	// bucket containing values of 2^47-1 nanoseconds or approx. 1 day or more.
    	// This range is more than enough to handle durations produced by the runtime.
    	timeHistMinBucketBits = 9
    	timeHistMaxBucketBits = 48 // Note that this is exclusive; 1 higher than the actual range.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. src/cmd/trace/main.go

    	"io"
    	"log"
    	"net"
    	"net/http"
    	_ "net/http/pprof" // Required to use pprof
    	"os"
    	"sync/atomic"
    	"time"
    )
    
    const usageMessage = "" +
    	`Usage of 'go tool trace':
    Given a trace file produced by 'go test':
    	go test -trace=trace.out pkg
    
    Open a web browser displaying trace:
    	go tool trace [flags] [pkg.test] trace.out
    
    Generate a pprof-like profile from the trace:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top