- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for applyGCLoad (0.1 sec)
-
src/runtime/gc_test.go
for i := range x { x[i] = new([1024]byte) } b.ResetTimer() for i := 0; i < b.N; i++ { runtime.ReadMemStats(&ms) } runtime.KeepAlive(x) } func applyGCLoad(b *testing.B) func() { // We’ll apply load to the runtime with maxProcs-1 goroutines // and use one more to actually benchmark. It doesn't make sense // to try to run this test with only 1 P (that's what
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 22:33:52 UTC 2024 - 17.6K bytes - Viewed (0)