- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 75 for RunParallel (0.15 sec)
-
src/internal/runtime/atomic/bench_test.go
var x [512]uint8 // give byte its own cache line sink = &x b.RunParallel(func(pb *testing.PB) { i := uint8(0) for pb.Next() { atomic.And8(&x[255], i) i++ } }) } func BenchmarkAndParallel(b *testing.B) { var x [128]uint32 // give x its own cache line sink = &x b.RunParallel(func(pb *testing.PB) { i := uint32(0) for pb.Next() { atomic.And(&x[63], i) i++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 3.2K bytes - Viewed (0) -
src/encoding/json/bench_test.go
"key3": 3, "key2": 2, "key1": 1, } b.RunParallel(func(pb *testing.PB) { for pb.Next() { if _, err := Marshal(m); err != nil { b.Fatal("Marshal:", err) } } }) } func BenchmarkCodeDecoder(b *testing.B) { b.ReportAllocs() if codeJSON == nil { b.StopTimer() codeInit() b.StartTimer() } b.RunParallel(func(pb *testing.PB) { var buf bytes.Buffer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:00:17 UTC 2024 - 12.5K bytes - Viewed (0) -
src/testing/benchmark_test.go
testing.Benchmark(func(b *testing.B) { b.RunParallel(func(pb *testing.PB) { // The function must be able to log/abort // w/o crashing/deadlocking the whole benchmark. b.Log("log") b.Error("error") }) }) } func TestRunParallelFatal(t *testing.T) { testing.Benchmark(func(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { if b.N > 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5.6K bytes - Viewed (0) -
pkg/test/framework/integration/framework_test.go
branchFactor int // runParallel if true, all tests in this level will be run in parallel. runParallel bool } func (l level) runParallelString() string { if l.runParallel { return "parallel" } return "sync" } type levels []level func (ls levels) Add(branchFactor int, runParallel bool) levels { return append(ls, level{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 5.9K bytes - Viewed (0) -
pkg/test/framework/test.go
// ctx.NewSubTest("T1a"). // RunParallel(func(ctx framework.TestContext) { // // Run in parallel with T1b // }) // ctx.NewSubTest("T1b"). // RunParallel(func(ctx framework.TestContext) { // // Run in parallel with T1a
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 10.3K bytes - Viewed (0) -
src/reflect/benchmark_test.go
v := ValueOf(S{}) b.RunParallel(func(pb *testing.PB) { for pb.Next() { v.Interface() } }) b.StopTimer() } func BenchmarkInterfaceSmall(b *testing.B) { v := ValueOf(int64(0)) b.RunParallel(func(pb *testing.PB) { for pb.Next() { v.Interface() } }) } func BenchmarkNew(b *testing.B) { v := TypeOf(XM{}) b.RunParallel(func(pb *testing.PB) { for pb.Next() { New(v)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Nov 19 17:09:03 UTC 2023 - 8.8K bytes - Viewed (0) -
src/runtime/rand_test.go
t.Fatalf("readRandom failed at startup") case "plan9": // ok } } } func BenchmarkFastrand(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { Fastrand() } }) } func BenchmarkFastrand64(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { Fastrand64() } }) } func BenchmarkFastrandHashiter(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 07 23:44:31 UTC 2023 - 2K bytes - Viewed (0) -
src/sync/waitgroup_test.go
type PaddedWaitGroup struct { WaitGroup pad [128]uint8 } b.RunParallel(func(pb *testing.PB) { var wg PaddedWaitGroup for pb.Next() { wg.Add(1) wg.Done() wg.Wait() } }) } func benchmarkWaitGroupAddDone(b *testing.B, localWork int) { var wg WaitGroup b.RunParallel(func(pb *testing.PB) { foo := 0 for pb.Next() { wg.Add(1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 14 17:38:39 UTC 2021 - 3K bytes - Viewed (0) -
src/runtime/trace/annotation_test.go
ctx, task := NewTask(context.Background(), "benchmark") defer task.End() b.RunParallel(func(pb *testing.PB) { for pb.Next() { StartRegion(ctx, "region").End() } }) } func BenchmarkNewTask(b *testing.B) { b.ReportAllocs() pctx, task := NewTask(context.Background(), "benchmark") defer task.End() b.RunParallel(func(pb *testing.PB) { for pb.Next() { _, task := NewTask(pctx, "task")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 721 bytes - Viewed (0) -
tests/integration/pilot/mcs/autoexport/autoexport_test.go
ctx.NewSubTest("exported").RunParallel( func(ctx framework.TestContext) { serviceB := match.ServiceName(echo.NamespacedName{Name: common.ServiceB, Namespace: echos.Namespace}) for _, cluster := range serviceB.GetMatches(echos.Instances).Clusters() { cluster := cluster ctx.NewSubTest(cluster.StableName()).RunParallel(func(ctx framework.TestContext) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 4.9K bytes - Viewed (0)