Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for benchtime (0.26 sec)

  1. src/cmd/go/testdata/script/test_benchmark_1x.txt

    # Test that -benchtime 1x only runs a total of 1 loop iteration.
    # See golang.org/issue/32051.
    
    go test -run ^$ -bench . -benchtime 1x
    
    -- go.mod --
    module bench
    
    go 1.16
    -- x_test.go --
    package bench
    
    import (
    	"fmt"
    	"os"
    	"testing"
    )
    
    var called = false
    
    func TestMain(m *testing.M) {
    	m.Run()
    	if !called {
    		fmt.Println("benchmark never called")
    		os.Exit(1)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 21:46:33 UTC 2021
    - 532 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_cache_inputs.txt

    go test testcache -run=ExternalFile
    stdout '\(cached\)'
    
    # The -benchtime flag without -bench should not affect caching.
    go test testcache -run=Benchtime -benchtime=1x
    go test testcache -run=Benchtime -benchtime=1x
    stdout '\(cached\)'
    
    go test testcache -run=Benchtime -bench=Benchtime -benchtime=1x
    go test testcache -run=Benchtime -bench=Benchtime -benchtime=1x
    ! stdout '\(cached\)'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 22:23:53 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. hack/jenkins/benchmark-dockerized.sh

    ./hack/install-etcd.sh
    
    # Run the benchmark tests and pretty-print the results into a separate file.
    # Log output of the tests go to stderr.
    make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=${TEST_PREFIX:-.} -benchtime=${BENCHTIME:-1s} -benchmem  -data-items-dir=${ARTIFACTS}" \
      | (go run test/integration/benchmark/extractlog/main.go) \
      | tee \
       >(prettybench -no-passthrough > "${ARTIFACTS}/BenchmarkResults.txt") \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/go/doc/testdata/benchmark.go

    			runtime.GOMAXPROCS(procs)
    			b := &B{
    				common: common{
    					signal: make(chan any),
    				},
    				benchmark: Benchmark,
    			}
    			benchName := Benchmark.Name
    			if procs != 1 {
    				benchName = fmt.Sprintf("%s-%d", Benchmark.Name, procs)
    			}
    			fmt.Printf("%s\t", benchName)
    			r := b.run()
    			if b.failed {
    				// The output could be very long here, but probably isn't.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/goflags.txt

    env GO111MODULE=off
    
    # GOFLAGS sets flags for commands
    
    env GOFLAGS='-e -f={{.Dir}} --test.benchtime=1s -count=10'
    go list asdfasdfasdf  # succeeds because of -e
    go list runtime
    stdout '[\\/]runtime$'
    
    env GOFLAGS=-race OLDGOARCH=$GOARCH OLDGOOS=$GOOS GOARCH=386 GOOS=linux
    ! go list runtime
    stderr 'race is not supported on linux/386'
    
    env GOARCH=$OLDGOARCH GOOS=$OLDGOOS
    
    # go env succeeds even though -f={{.Dir}} is inappropriate
    go env
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 16:47:27 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/test/flagdefs.go

    package test
    
    // passFlagToTest contains the flags that should be forwarded to
    // the test binary with the prefix "test.".
    var passFlagToTest = map[string]bool{
    	"bench":                true,
    	"benchmem":             true,
    	"benchtime":            true,
    	"blockprofile":         true,
    	"blockprofilerate":     true,
    	"count":                true,
    	"coverprofile":         true,
    	"cpu":                  true,
    	"cpuprofile":           true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/go/doc/testdata/testing.1.golden

    		parallel	= flag.Int("test.parallel", runtime.GOMAXPROCS(0), "maximum test parallelism")
    	
    		cpuList	[]int
    	)
    
    	// 
    	var benchTime = flag.Duration("test.benchtime", 1*time.Second, "approximate run time for each benchmark")
    
    	// 
    	var matchBenchmarks = flag.String("test.bench", "", "regular expression to select benchmarks to run")
    
    	// 
    	var timer *time.Timer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8.4K bytes
    - Viewed (0)
  8. pkg/ledger/smt_test.go

    		fmt.Println(index, " : update time : ", elapsed, "commit time : ", elapsed2,
    			"\n1000 Get time : ", elapsed3,
    			"\nRAM : ", m.Sys/1024/1024, " MiB")
    	}
    }
    
    // go test -run=xxx -bench=. -benchmem -test.benchtime=20s
    func BenchmarkCacheHeightLimit(b *testing.B) {
    	smt := newSMT(hasher, cache.NewTTL(forever, time.Minute), time.Minute)
    	benchmark10MAccounts10Ktps(smt, b)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/net/lif/zsys_solaris_amd64.go

    	Family    uint16
    	Pad_cgo_0 [2]byte
    	Flags     int32
    	Len       int32
    	Pad_cgo_1 [4]byte
    	Lifcu     [8]byte
    }
    
    type lifIfinfoReq struct {
    	Maxhops      uint8
    	Pad_cgo_0    [3]byte
    	Reachtime    uint32
    	Reachretrans uint32
    	Maxmtu       uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 05 19:54:32 UTC 2022
    - 981 bytes
    - Viewed (0)
Back to top