- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for RunParallel (0.11 sec)
-
src/fmt/fmt_test.go
func BenchmarkSprintfPadding(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { _ = Sprintf("%16f", 1.0) } }) } func BenchmarkSprintfEmpty(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { _ = Sprintf("") } }) } func BenchmarkSprintfString(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0) -
tests/integration/ambient/baseline_test.go
src := src t.NewSubTestf("from %v", src.Config().Service).RunParallel(func(t framework.TestContext) { for _, dst := range svcs { dst := dst t.NewSubTestf("to %v", dst.Config().Service).RunParallel(func(t framework.TestContext) { for _, opt := range callOptions { opt := opt t.NewSubTestf("%v", opt.Scheme).RunParallel(func(t framework.TestContext) { opt = opt.DeepCopy()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 00:07:28 UTC 2024 - 78.4K bytes - Viewed (0) -
src/encoding/xml/marshal_test.go
} } func BenchmarkMarshal(b *testing.B) { b.ReportAllocs() b.RunParallel(func(pb *testing.PB) { for pb.Next() { Marshal(atomValue) } }) } func BenchmarkUnmarshal(b *testing.B) { b.ReportAllocs() xml := []byte(atomXML) b.RunParallel(func(pb *testing.PB) { for pb.Next() { Unmarshal(xml, &Feed{}) } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 66K bytes - Viewed (0) -
src/testing/testing.go
// } // // If a benchmark needs to test performance in a parallel setting, it may use // the RunParallel helper function; such benchmarks are intended to be used with // the go test -cpu flag: // // func BenchmarkTemplateParallel(b *testing.B) { // templ := template.Must(template.New("test").Parse("Hello, {{.}}!")) // b.RunParallel(func(pb *testing.PB) { // var buf bytes.Buffer // for pb.Next() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0)