- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkStartRegion (0.35 sec)
-
src/runtime/trace/annotation_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package trace_test import ( "context" . "runtime/trace" "testing" ) func BenchmarkStartRegion(b *testing.B) { b.ReportAllocs() ctx, task := NewTask(context.Background(), "benchmark") defer task.End() b.RunParallel(func(pb *testing.PB) { for pb.Next() { StartRegion(ctx, "region").End() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 721 bytes - Viewed (0)