Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for trimOutput (0.1 sec)

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

    			if len(b.output) > 0 {
    				b.trimOutput()
    				fmt.Printf("--- BENCH: %s\n%s", benchName, b.output)
    			}
    			if p := runtime.GOMAXPROCS(-1); p != procs {
    				fmt.Fprintf(os.Stderr, "testing: %s left GOMAXPROCS set to %d\n", benchName, p)
    			}
    		}
    	}
    }
    
    // trimOutput shortens the output from a benchmark, which can be very long.
    func (b *B) trimOutput() {
    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/go/doc/testdata/testing.1.golden

    	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 {
    		N	int		// The number of iterations.
    		T	time.Duration	// The total time taken.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8.4K bytes
    - Viewed (0)
Back to top