- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 2,018 for allDocs (0.12 sec)
-
src/cmd/compile/internal/base/base.go
const ( goal = "/gc/heap/goal:bytes" count = "/gc/cycles/total:gc-cycles" allocs = "/gc/heap/allocs:bytes" frees = "/gc/heap/frees:bytes" ) sample := []metrics.Sample{{Name: goal}, {Name: count}, {Name: allocs}, {Name: frees}} const ( GOAL = 0 COUNT = 1 ALLOCS = 2 FREES = 3 ) // Assumptions and observations of Go's garbage collector, as of Go 1.17-1.20:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:18:34 UTC 2023 - 8K bytes - Viewed (0) -
src/sync/map_test.go
} func TestMapRangeNoAllocations(t *testing.T) { // Issue 62404 testenv.SkipIfOptimizationOff(t) var m sync.Map allocs := testing.AllocsPerRun(10, func() { m.Range(func(key, value any) bool { return true }) }) if allocs > 0 { t.Errorf("AllocsPerRun of m.Range = %v; want 0", allocs) } } // TestConcurrentClear tests concurrent behavior of sync.Map properties to ensure no data races.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 8.1K bytes - Viewed (0) -
src/path/path_test.go
} if runtime.GOMAXPROCS(0) > 1 { t.Log("skipping AllocsPerRun checks; GOMAXPROCS>1") return } for _, test := range cleantests { allocs := testing.AllocsPerRun(100, func() { Clean(test.result) }) if allocs > 0 { t.Errorf("Clean(%q): %v allocs, want zero", test.result, allocs) } } } type SplitTest struct { path, dir, file string } var splittests = []SplitTest{ {"a/b", "a/", "b"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 13 01:12:09 UTC 2020 - 4.6K bytes - Viewed (0) -
src/net/http/header_test.go
if testing.Short() { t.Skip("skipping alloc test in short mode") } if race.Enabled { t.Skip("skipping test under race detector") } if runtime.GOMAXPROCS(0) > 1 { t.Skip("skipping; GOMAXPROCS>1") } n := testing.AllocsPerRun(100, func() { buf.Reset() testHeader.WriteSubset(&buf, nil) }) if n > 0 { t.Errorf("allocs = %g; want 0", n) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 01:07:32 UTC 2022 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/cache_test.go
var wg sync.WaitGroup for i := 0; i < 100; i++ { wg.Add(1) go func() { f() wg.Done() }() } wg.Wait() allocs := testing.AllocsPerRun(100, f) if allocs > 1 { t.Errorf("Expected 1 allocations, got %v", allocs) } }) } func TestSimpleCache(t *testing.T) { fakeClock := testingclock.NewFakeClock(time.Now())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 31 20:26:58 UTC 2023 - 4.9K bytes - Viewed (0) -
pkg/kubelet/volumemanager/reconciler/reconstruct_test.go
} allPods := rcInstance.actualStateOfWorld.GetAllMountedVolumes() if len(allPods) != 1 { t.Errorf("expected 1 mounted or uncertain volumes after reconcile, got %+v", allPods) } if tc.deviceMountPath != "" { expectedDeviceMountPath := filepath.Join(tmpKubeletDir, tc.deviceMountPath) deviceMountPath := allPods[0].DeviceMountPath
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.8K bytes - Viewed (0) -
src/sort/search_test.go
if testing.Short() { t.Skip("skipping malloc count in short mode") } if runtime.GOMAXPROCS(0) > 1 { t.Skip("skipping; GOMAXPROCS>1") } allocs := testing.AllocsPerRun(100, runSearchWrappers) if allocs != 0 { t.Errorf("expected no allocs for runSearchWrappers, got %v", allocs) } } func BenchmarkSearchWrappers(b *testing.B) { for i := 0; i < b.N; i++ { runSearchWrappers() } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 07 14:42:13 UTC 2022 - 6.8K bytes - Viewed (0) -
src/runtime/string_test.go
} }) if n != 0 { t.Fatalf("want 0 allocs, got %v", n) } } func TestStringIndexHaystack(t *testing.T) { // See issue 25864. haystack := []byte("hello") needle := "ll" n := testing.AllocsPerRun(1000, func() { if strings.Index(string(haystack), needle) != 2 { t.Fatalf("needle not found") } }) if n != 0 { t.Fatalf("want 0 allocs, got %v", n) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 13 14:05:23 UTC 2022 - 13.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/marshal_test.go
{`{"val1": {"type":"string"}}`, JSONSchemaPropsOrBoolHolder{JSPoB: JSONSchemaPropsOrBool{Allows: true, Schema: &JSONSchemaProps{Type: "string"}}}}, {`{"val1": false}`, JSONSchemaPropsOrBoolHolder{JSPoB: JSONSchemaPropsOrBool{}}}, {`{"val1": true}`, JSONSchemaPropsOrBoolHolder{JSPoB: JSONSchemaPropsOrBool{Allows: true}}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 15 16:26:13 UTC 2019 - 7.1K bytes - Viewed (0) -
src/runtime/extern.go
init # @#ms, # ms clock, # bytes, # allocs where the fields are as follows: init # the package name @# ms time in milliseconds when the init started since program start # clock wall-clock time for package initialization work # bytes memory allocated on the heap # allocs number of heap allocations madvdontneed: setting madvdontneed=0 will use MADV_FREE
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 18.9K bytes - Viewed (0)