There was an error while loading. Please reload this page.
1 parent 7c8cdd1 commit 1dee3c3Copy full SHA for 1dee3c3
hashstructure_test.go
@@ -675,6 +675,37 @@ func TestHash_hashable(t *testing.T) {
675
}
676
677
678
+func BenchmarkMap(b *testing.B) {
679
+ m := map[string]any{
680
+ "a": "b",
681
+ "c": "d",
682
+ "e": "f",
683
+ "g": "h",
684
+ "i": "j",
685
+ "k": "l",
686
+ "m": "n",
687
+ "o": "p",
688
+ "q": "r",
689
+ "s": "t",
690
+ "nested": map[string]string{
691
692
693
694
695
696
697
698
699
700
701
+ },
702
+ }
703
+
704
+ for i := 0; i < b.N; i++ {
705
+ Hash(m, nil)
706
707
+}
708
709
type testIncludable struct {
710
Value string
711
Ignore string
0 commit comments