Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for trimOutput (0.85 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)
  3. src/testing/benchmark.go

    	}
    	if !b.missingBytes {
    		r.Bytes += other.Bytes
    	}
    	r.MemAllocs += uint64(other.AllocsPerOp())
    	r.MemBytes += uint64(other.AllocedBytesPerOp())
    }
    
    // trimOutput shortens the output from a benchmark, which can be very long.
    func (b *B) trimOutput() {
    	// The output is likely to appear multiple times because the benchmark
    	// is run multiple times, but at least it will be seen. This is not a big deal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top