Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkSimplefunc (0.17 sec)

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

    go test -list=Example
    stdout ExampleSimple
    stdout ExampleWithEmptyOutput
    
    -- go.mod --
    module m
    
    go 1.16
    -- bench_test.go --
    package testlist
    
    import (
    	"fmt"
    	"testing"
    )
    
    func BenchmarkSimplefunc(b *testing.B) {
    	b.StopTimer()
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    		_ = fmt.Sprint("Test for bench")
    	}
    }
    -- example_test.go --
    package testlist
    
    import (
    	"fmt"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 856 bytes
    - Viewed (0)
Back to top