-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unroll perfect key hashing calculation (#1472)
Signed-off-by: Juan Cruz Viotti <[email protected]>
- Loading branch information
Showing
1 changed file
with
76 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b5f2d36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark (macos/llvm)
JSON_Array_Of_Objects_Unique
375.69128770091845
ns/iter346.7931133661595
ns/iter1.08
JSON_Parse_1
28805.869445022396
ns/iter21951.59109489967
ns/iter1.31
JSON_Fast_Hash_Helm_Chart_Lock
59.74752196133004
ns/iter48.9273807052725
ns/iter1.22
JSON_Equality_Helm_Chart_Lock
160.56989412734833
ns/iter119.0194409855827
ns/iter1.35
JSON_String_Equal/10
8.941264522773453
ns/iter7.844418354552496
ns/iter1.14
JSON_String_Equal/100
7.487324985132637
ns/iter6.221250382962962
ns/iter1.20
JSON_String_Equal_Small_By_Perfect_Hash/10
0.3864148127230903
ns/iter0.3323952563575624
ns/iter1.16
JSON_String_Equal_Small_By_Runtime_Perfect_Hash/10
4.099833866103135
ns/iter5.441196825031139
ns/iter0.75
JSON_String_Fast_Hash/10
1.8365705100772305
ns/iter1.887686831898805
ns/iter0.97
JSON_String_Fast_Hash/100
2.225453619590294
ns/iter2.004853213726344
ns/iter1.11
JSON_String_Key_Hash/10
1.4995955156668115
ns/iter2.2849692244511877
ns/iter0.66
JSON_String_Key_Hash/100
1.4377897538619848
ns/iter0.6479410679743071
ns/iter2.22
Pointer_Object_Traverse
18.766108269274838
ns/iter15.835977594904856
ns/iter1.19
Pointer_Object_Try_Traverse
27.399276762722188
ns/iter22.515601350297295
ns/iter1.22
Pointer_Push_Back_Pointer_To_Weak_Pointer
208.08974630523068
ns/iter192.00052304286294
ns/iter1.08
This comment was automatically generated by workflow using github-action-benchmark.
b5f2d36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark (linux/llvm)
JSON_Array_Of_Objects_Unique
457.345681349121
ns/iter386.2590280374966
ns/iter1.18
JSON_Parse_1
30038.71086241437
ns/iter30344.29593643512
ns/iter0.99
JSON_Fast_Hash_Helm_Chart_Lock
58.48827735607325
ns/iter58.44219279496071
ns/iter1.00
JSON_Equality_Helm_Chart_Lock
150.53127836270258
ns/iter146.9878929870455
ns/iter1.02
JSON_String_Equal/10
6.56517544377116
ns/iter6.538812176397777
ns/iter1.00
JSON_String_Equal/100
7.1588326877609765
ns/iter7.15719781124909
ns/iter1.00
JSON_String_Equal_Small_By_Perfect_Hash/10
0.9332334075544138
ns/iter0.31091466182617306
ns/iter3.00
JSON_String_Equal_Small_By_Runtime_Perfect_Hash/10
10.256507419773419
ns/iter14.609815465217313
ns/iter0.70
JSON_String_Fast_Hash/10
2.176737251633049
ns/iter2.17623155407128
ns/iter1.00
JSON_String_Fast_Hash/100
2.175218641076881
ns/iter2.1752030060057246
ns/iter1.00
JSON_String_Key_Hash/10
2.8017768306823543
ns/iter3.4218148570493314
ns/iter0.82
JSON_String_Key_Hash/100
2.4878962695918556
ns/iter1.2444069813174337
ns/iter2.00
Pointer_Object_Traverse
44.62578353443229
ns/iter44.5159451759355
ns/iter1.00
Pointer_Object_Try_Traverse
52.58799726321404
ns/iter52.71724197339941
ns/iter1.00
Pointer_Push_Back_Pointer_To_Weak_Pointer
350.8287079752656
ns/iter371.384346567401
ns/iter0.94
This comment was automatically generated by workflow using github-action-benchmark.
b5f2d36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark (linux/gcc)
Pointer_Object_Traverse
45.38040088933165
ns/iter44.80052405004467
ns/iter1.01
Pointer_Object_Try_Traverse
26.05419677265419
ns/iter25.85251049893182
ns/iter1.01
Pointer_Push_Back_Pointer_To_Weak_Pointer
139.65533067224237
ns/iter137.8475070260987
ns/iter1.01
JSON_Array_Of_Objects_Unique
440.6230259188759
ns/iter395.10918424085264
ns/iter1.12
JSON_Parse_1
33353.37410548924
ns/iter33638.88460613078
ns/iter0.99
JSON_Fast_Hash_Helm_Chart_Lock
65.68172860062359
ns/iter63.91865619705268
ns/iter1.03
JSON_Equality_Helm_Chart_Lock
153.37145635683692
ns/iter159.17229452798466
ns/iter0.96
JSON_String_Equal/10
6.5481387309766195
ns/iter6.92713537870774
ns/iter0.95
JSON_String_Equal/100
6.963968388983605
ns/iter7.556952510212478
ns/iter0.92
JSON_String_Equal_Small_By_Perfect_Hash/10
0.9357875232878377
ns/iter0.9630613844064112
ns/iter0.97
JSON_String_Equal_Small_By_Runtime_Perfect_Hash/10
12.66392918682582
ns/iter18.49440802860966
ns/iter0.68
JSON_String_Fast_Hash/10
0.9326895037784483
ns/iter0.9341896726009641
ns/iter1.00
JSON_String_Fast_Hash/100
0.9353359477241582
ns/iter0.9335906837492262
ns/iter1.00
JSON_String_Key_Hash/10
1.943864390631585
ns/iter4.047085151363011
ns/iter0.48
JSON_String_Key_Hash/100
1.9453002707377907
ns/iter0.9342938320331463
ns/iter2.08
This comment was automatically generated by workflow using github-action-benchmark.
b5f2d36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark (windows/msvc)
JSON_Array_Of_Objects_Unique
445.6217500000292
ns/iter444.7887499999581
ns/iter1.00
JSON_Parse_1
79689.88839285476
ns/iter78759.82142857245
ns/iter1.01
JSON_Fast_Hash_Helm_Chart_Lock
65.69383035713575
ns/iter62.929580357139315
ns/iter1.04
JSON_Equality_Helm_Chart_Lock
197.37762734918527
ns/iter193.76433872894742
ns/iter1.02
JSON_String_Equal/10
9.004574959800758
ns/iter9.28942656249987
ns/iter0.97
JSON_String_Equal/100
9.917225000000585
ns/iter9.915933437875792
ns/iter1.00
JSON_String_Equal_Small_By_Perfect_Hash/10
1.8591680373740938
ns/iter2.1677037499998164
ns/iter0.86
JSON_String_Equal_Small_By_Runtime_Perfect_Hash/10
15.382910611274035
ns/iter18.58017338017952
ns/iter0.83
JSON_String_Fast_Hash/10
3.7176399049058735
ns/iter4.025406808036029
ns/iter0.92
JSON_String_Fast_Hash/100
3.723681919643213
ns/iter4.0315861232705545
ns/iter0.92
JSON_String_Key_Hash/10
8.228196428571469
ns/iter5.639562499999735
ns/iter1.46
JSON_String_Key_Hash/100
4.02627701611869
ns/iter2.828593123737349
ns/iter1.42
Pointer_Object_Traverse
55.75359000000618
ns/iter50.406870000006165
ns/iter1.11
Pointer_Object_Try_Traverse
68.19849330357286
ns/iter74.15177455356263
ns/iter0.92
Pointer_Push_Back_Pointer_To_Weak_Pointer
173.44295357877436
ns/iter180.33960538748514
ns/iter0.96
This comment was automatically generated by workflow using github-action-benchmark.