From ff889a73e5704fce60b148dcdb2e1fe0ddc6f56e Mon Sep 17 00:00:00 2001 From: 14March <53811984+hcraM41@users.noreply.github.com> Date: Thu, 13 Jul 2023 11:57:19 +0800 Subject: [PATCH] fix:BenchmarkMultiInsertDifferent_256_Shard --- concurrent_map_bench_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/concurrent_map_bench_test.go b/concurrent_map_bench_test.go index 50cd075..2c3a2cb 100644 --- a/concurrent_map_bench_test.go +++ b/concurrent_map_bench_test.go @@ -143,7 +143,7 @@ func BenchmarkMultiInsertDifferent_32_Shard(b *testing.B) { runWithShards(benchmarkMultiInsertDifferent, b, 32) } func BenchmarkMultiInsertDifferent_256_Shard(b *testing.B) { - runWithShards(benchmarkMultiGetSetDifferent, b, 256) + runWithShards(benchmarkMultiInsertDifferent, b, 256) } func BenchmarkMultiInsertSame(b *testing.B) { @@ -292,7 +292,6 @@ func BenchmarkMultiGetSetBlock_256_Shard(b *testing.B) { runWithShards(benchmarkMultiGetSetBlock, b, 256) } - func GetSet[K comparable, V any](m ConcurrentMap[K, V], finished chan struct{}) (set func(key K, value V), get func(key K, value V)) { return func(key K, value V) { for i := 0; i < 10; i++ {