Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 9,054 for runN (0.29 sec)

  1. src/go/doc/testdata/benchmark.go

    func (b *B) nsPerOp() int64 {
    	if b.N <= 0 {
    		return 0
    	}
    	return b.duration.Nanoseconds() / int64(b.N)
    }
    
    // runN runs a single benchmark for the specified number of iterations.
    func (b *B) runN(n int) {
    	// Try to get a comparable environment for each run
    	// by clearing garbage from previous runs.
    	runtime.GC()
    	b.N = n
    	b.ResetTimer()
    	b.StartTimer()
    	b.benchmark.F(b)
    	b.StopTimer()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  2. src/testing/benchmark.go

    	b.showAllocResult = true
    }
    
    // runN runs a single benchmark for the specified number of iterations.
    func (b *B) runN(n int) {
    	benchmarkLock.Lock()
    	defer benchmarkLock.Unlock()
    	defer func() {
    		b.runCleanup(normalPanic)
    		b.checkRaces()
    	}()
    	// Try to get a comparable environment for each run
    	// by clearing garbage from previous runs.
    	runtime.GC()
    	b.resetRaces()
    	b.N = n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/cmd/bisect/main.go

    		broken = runY
    		b.Disable = false
    
    	case !runN.Success && runY.Success:
    		b.Logf("target fails with no changes, succeeds with all changes")
    		b.Logf("searching for minimal set of disabled changes causing failure")
    		broken = runN
    		b.Disable = true
    
    	case runN.Success && runY.Success:
    		b.Fatalf("target succeeds with no changes and all changes")
    
    	case !runN.Success && !runY.Success:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 18:11:19 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  4. src/go/doc/testdata/testing.1.golden

    	// 
    	func (b *B) nsPerOp() int64
    
    	// run times the benchmark function in a separate goroutine. 
    	func (b *B) run() BenchmarkResult
    
    	// runN runs a single benchmark for the specified number of ...
    	func (b *B) runN(n int)
    
    	// trimOutput shortens the output from a benchmark, which can be ...
    	func (b *B) trimOutput()
    
    	// The results of a benchmark run. 
    	type BenchmarkResult struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8.4K bytes
    - Viewed (0)
  5. src/testing/sub_test.go

    						t.Run("b", func(t *T) {
    							time.Sleep(time.Nanosecond)
    							for i := 0; i < 12; i++ {
    								t.Run("c", func(t *T) {
    									t.Parallel()
    									time.Sleep(time.Nanosecond)
    									t.Run("d1", func(t *T) {})
    									t.Run("d2", func(t *T) {})
    									t.Run("d3", func(t *T) {})
    									t.Run("d4", func(t *T) {})
    								})
    							}
    						})
    					}
    				})
    			}
    		},
    	}, {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
  6. test/rune.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test rune constants, expressions and types.
    // Compiles but does not run.
    
    package rune
    
    var (
    	r0 = 'a'
    	r1 = 'a'+1
    	r2 = 1+'a'
    	r3 = 'a'*2
    	r4 = 'a'/2
    	r5 = 'a'<<1
    	r6 = 'b'<<2
    	r7 int32
    
    	r = []rune{r0, r1, r2, r3, r4, r5, r6, r7}
    )
    
    var (
    	f0 = 1.2
    	f1 = 1.2/'a'
    
    	f = []float64{f0, f1}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 603 bytes
    - Viewed (0)
  7. src/cmd/go/internal/run/run.go

    module-aware mode or GOPATH mode, depending on the GO111MODULE environment
    variable and the presence of a go.mod file. See 'go help modules' for details.
    If module-aware mode is enabled, "go run" runs in the context of the main
    module.
    
    By default, 'go run' runs the compiled binary directly: 'a.out arguments...'.
    If the -exec flag is given, 'go run' invokes the binary using xprog:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. pkg/test/framework/components/echo/echotest/run.go

    			})
    		}
    	})
    }
    
    // fromEachCluster runs test from each cluster without requiring source deployment.
    func (t *T) fromEachCluster(ctx framework.TestContext, testFn perClusterTest) {
    	for _, fromCluster := range t.sources.Clusters() {
    		fromCluster := fromCluster
    		ctx.NewSubTestf("from %s", fromCluster.StableName()).Run(func(ctx framework.TestContext) {
    			testFn(ctx, fromCluster)
    		})
    	}
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 27 22:08:42 UTC 2023
    - 13K bytes
    - Viewed (0)
  9. src/run.rc

    #!/bin/rc -e
    # Copyright 2012 The Go Authors. All rights reserved.
    # Use of this source code is governed by a BSD-style
    # license that can be found in the LICENSE file.
    
    rfork e
    
    if(! test -f ../bin/go){
    	echo 'run.rc must be run from $GOROOT/src after installing cmd/go' >[1=2]
    	exit wrongdir
    }
    
    GOENV=off
    eval `{../bin/go tool dist env}
    
    GOPATH=/nonexist-gopath
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 17 20:19:28 UTC 2022
    - 406 bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/internal/operations/notify/BuildOperationNotificationContinuousBuildIntegrationTest.groovy

        @ToBeFixedForConfigurationCache(because = "run1.id == run2.id")
        def "obtains notifications about init scripts"() {
            when:
            settingsFile << notifications.registerListener()
            buildScript """
                apply plugin: "java"
            """
            file("src/main/java/Thing.java") << "class Thing {}"
    
            then:
            succeeds("build")
            def run1 = notifications.op(RunBuildBuildOperationType.Details)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 11 09:57:23 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top