From b21ebb5d0056f8e62223783127b33cfd59dc305b Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Fri, 24 Jan 2025 12:07:14 +0300 Subject: [PATCH] [#1] mclock: Fix bench format Signed-off-by: Dmitrii Stepanov --- scheduling/mclock_bench_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scheduling/mclock_bench_test.go b/scheduling/mclock_bench_test.go index 71d58e9..42fb0c7 100644 --- a/scheduling/mclock_bench_test.go +++ b/scheduling/mclock_bench_test.go @@ -36,7 +36,7 @@ func BenchmarkMClock(b *testing.B) { b.SetParallelism(parallelism) noopMClock := &noopMClockScheduler{} - b.Run(fmt.Sprintf("noop, %d parallelism", parallelism), func(b *testing.B) { + b.Run(fmt.Sprintf("impl=noop/parallelism=%d", parallelism), func(b *testing.B) { b.ResetTimer() b.ReportAllocs() b.RunParallel(func(pb *testing.PB) { @@ -66,7 +66,7 @@ func BenchmarkMClock(b *testing.B) { if limit != nil { limitStr = strconv.FormatFloat(*limit, 'f', 1, 64) } - b.Run(fmt.Sprintf("mclock, %s limit, %s reservation, %d parallelism, %d tags", limitStr, resStr, parallelism, tags), func(b *testing.B) { + b.Run(fmt.Sprintf("impl=mclock/limit=%s/reservation=%s/parallelism=%d/tags=%d", limitStr, resStr, parallelism, tags), func(b *testing.B) { b.ResetTimer() b.ReportAllocs() b.RunParallel(func(pb *testing.PB) {