- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for NewBig (0.12 sec)
-
src/go/doc/testdata/testing.go
// // If a benchmark needs some expensive setup before running, the timer // may be stopped: // func BenchmarkBigLen(b *testing.B) { // b.StopTimer() // big := NewBig() // b.StartTimer() // for i := 0; i < b.N; i++ { // big.Len() // } // } package testing import ( "flag" "fmt" "os" "runtime" "runtime/pprof"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 11.8K bytes - Viewed (0) -
src/testing/testing.go
// means that the loop ran 68453040 times at a speed of 17.8 ns per loop. // // If a benchmark needs some expensive setup before running, the timer // may be reset: // // func BenchmarkBigLen(b *testing.B) { // big := NewBig() // b.ResetTimer() // for range b.N { // big.Len() // } // } // // If a benchmark needs to test performance in a parallel setting, it may use
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/builtin.go
typs[141] = newSig(params(typs[60]), params(typs[20])) typs[142] = newSig(params(typs[26], typs[26]), params(typs[26])) typs[143] = newSig(nil, params(typs[5])) typs[144] = newSig(params(typs[5], typs[5]), nil) typs[145] = newSig(params(typs[5], typs[5], typs[5]), nil) typs[146] = newSig(params(typs[7], typs[1], typs[5]), nil) typs[147] = types.NewSlice(typs[7])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 16.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/subst.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/mkbuiltin.go
fmt.Fprintln(&b, ` "cmd/internal/src"`) fmt.Fprintln(&b, `)`) fmt.Fprintln(&b, ` // Not inlining this function removes a significant chunk of init code. //go:noinline func newSig(params, results []*types.Field) *types.Type { return types.NewSignature(nil, params, results) } func params(tlist ...*types.Type) []*types.Field { flist := make([]*types.Field, len(tlist)) for i, typ := range tlist {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 6K bytes - Viewed (0) -
src/go/types/subst.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11.1K bytes - Viewed (0)