-
-
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.
Revise JSON public interface (#1497)
Signed-off-by: Juan Cruz Viotti <[email protected]>
- Loading branch information
Showing
135 changed files
with
2,821 additions
and
2,713 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
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
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
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
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
Oops, something went wrong.
11a33a9
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)
Regex_Lower_S_Or_Upper_S_Asterisk
2.2807808245183803
ns/iter2.2050512387874956
ns/iter1.03
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar
2.221557165399618
ns/iter2.2133154306637066
ns/iter1.00
Regex_Period_Asterisk
2.2191893553347626
ns/iter2.2012901741780393
ns/iter1.01
Regex_Group_Period_Asterisk_Group
2.1994656302916735
ns/iter2.207811657735912
ns/iter1.00
Regex_Period_Plus
2.7987753106338396
ns/iter2.7985361671290168
ns/iter1.00
Regex_Period
2.798308478299979
ns/iter2.796764586974133
ns/iter1.00
Regex_Caret_Period_Plus_Dollar
2.7982167929019197
ns/iter2.5723747925543075
ns/iter1.09
Regex_Caret_Group_Period_Plus_Group_Dollar
2.8002324135062695
ns/iter2.7981650539947505
ns/iter1.00
Regex_Caret_Period_Asterisk_Dollar
3.419790248577038
ns/iter3.4193891778202787
ns/iter1.00
Regex_Caret_Group_Period_Asterisk_Group_Dollar
3.4193372720644657
ns/iter3.4197174739966787
ns/iter1.00
Regex_Caret_X_Hyphen
13.068842961291075
ns/iter13.072647488173848
ns/iter1.00
Regex_Period_Md_Dollar
81.57622794228904
ns/iter81.42181245940239
ns/iter1.00
Regex_Caret_Slash_Period_Asterisk
6.906041716414757
ns/iter6.842858695849204
ns/iter1.01
Regex_Caret_Period_Range_Dollar
3.1988594614279253
ns/iter4.0487327974963225
ns/iter0.79
Regex_Nested_Backtrack
498.8224675494191
ns/iter494.07905326505045
ns/iter1.01
JSON_Array_Of_Objects_Unique
393.77675461475536
ns/iter411.7208253809518
ns/iter0.96
JSON_Parse_1
30342.110026772396
ns/iter30431.233809193825
ns/iter1.00
JSON_Fast_Hash_Helm_Chart_Lock
59.349495702311664
ns/iter58.451094197492765
ns/iter1.02
JSON_Equality_Helm_Chart_Lock
160.6295372889585
ns/iter149.40573471663004
ns/iter1.08
JSON_String_Equal/10
6.1222407548890345
ns/iter6.226806037500554
ns/iter0.98
JSON_String_Equal/100
6.528766554882213
ns/iter6.849685508971541
ns/iter0.95
JSON_String_Equal_Small_By_Perfect_Hash/10
0.9341422097778194
ns/iter0.9349340346684696
ns/iter1.00
JSON_String_Equal_Small_By_Runtime_Perfect_Hash/10
10.810776138935813
ns/iter14.634331506503015
ns/iter0.74
JSON_String_Fast_Hash/10
2.4868043705189415
ns/iter2.486387677696929
ns/iter1.00
JSON_String_Fast_Hash/100
2.4851975770456836
ns/iter2.4886060061438067
ns/iter1.00
JSON_String_Key_Hash/10
2.1773075927702035
ns/iter2.676963179512288
ns/iter0.81
JSON_String_Key_Hash/100
1.866522211366547
ns/iter1.881861828928084
ns/iter0.99
JSON_Object_Defines_Miss_Same_Length
3.73248016178213
ns/iter3.732354810678442
ns/iter1.00
JSON_Object_Defines_Miss_Too_Small
3.73470404911357
ns/iter3.7327104571903975
ns/iter1.00
JSON_Object_Defines_Miss_Too_Large
3.732980224981921
ns/iter3.7370353683927093
ns/iter1.00
Pointer_Object_Traverse
44.47817152719941
ns/iter44.22833468570419
ns/iter1.01
Pointer_Object_Try_Traverse
52.40706450334246
ns/iter52.304825167989144
ns/iter1.00
Pointer_Push_Back_Pointer_To_Weak_Pointer
301.8532897197501
ns/iter308.0664655172357
ns/iter0.98
This comment was automatically generated by workflow using github-action-benchmark.
11a33a9
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)
Regex_Lower_S_Or_Upper_S_Asterisk
2.116681058480461
ns/iter1.6827194789176951
ns/iter1.26
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar
1.7736099918214527
ns/iter1.7303372628161136
ns/iter1.03
Regex_Period_Asterisk
1.7444086660931577
ns/iter1.6979457280891974
ns/iter1.03
Regex_Group_Period_Asterisk_Group
1.8582800667293007
ns/iter1.719293095624922
ns/iter1.08
Regex_Period_Plus
2.5604757934042426
ns/iter2.6205341010478436
ns/iter0.98
Regex_Period
2.38863893790297
ns/iter2.0408653404165085
ns/iter1.17
Regex_Caret_Period_Plus_Dollar
2.1412191002759196
ns/iter2.0543954113417757
ns/iter1.04
Regex_Caret_Group_Period_Plus_Group_Dollar
2.031754372466838
ns/iter2.097602018542431
ns/iter0.97
Regex_Caret_Period_Asterisk_Dollar
1.7061892441467585
ns/iter1.7439165049669223
ns/iter0.98
Regex_Caret_Group_Period_Asterisk_Group_Dollar
1.699064495733761
ns/iter1.717822964164223
ns/iter0.99
Regex_Caret_X_Hyphen
7.220669999246519
ns/iter7.147051527943531
ns/iter1.01
Regex_Period_Md_Dollar
74.59936204315419
ns/iter73.07643442975136
ns/iter1.02
Regex_Caret_Slash_Period_Asterisk
5.5818021686504276
ns/iter5.3954649742540095
ns/iter1.03
Regex_Caret_Period_Range_Dollar
2.4039329240168885
ns/iter2.4011941881299848
ns/iter1.00
Regex_Nested_Backtrack
794.018258601869
ns/iter784.5882081943905
ns/iter1.01
JSON_Array_Of_Objects_Unique
364.73191988073086
ns/iter379.6569806467342
ns/iter0.96
JSON_Parse_1
23444.95783667393
ns/iter35183.86221112478
ns/iter0.67
JSON_Fast_Hash_Helm_Chart_Lock
54.31572214370856
ns/iter62.02613171375173
ns/iter0.88
JSON_Equality_Helm_Chart_Lock
135.93192103175582
ns/iter134.87852202551315
ns/iter1.01
JSON_String_Equal/10
8.25028442961671
ns/iter12.404813837431663
ns/iter0.67
JSON_String_Equal/100
6.712316225727439
ns/iter10.625019157009811
ns/iter0.63
JSON_String_Equal_Small_By_Perfect_Hash/10
0.3413935109351046
ns/iter0.43332202807624554
ns/iter0.79
JSON_String_Equal_Small_By_Runtime_Perfect_Hash/10
3.1936554959815058
ns/iter3.473855823508688
ns/iter0.92
JSON_String_Fast_Hash/10
1.7899087917700789
ns/iter1.928244372652104
ns/iter0.93
JSON_String_Fast_Hash/100
2.0813058370555684
ns/iter2.3916853368727824
ns/iter0.87
JSON_String_Key_Hash/10
1.3658070510356177
ns/iter1.6065193911743492
ns/iter0.85
JSON_String_Key_Hash/100
1.3676967869786802
ns/iter1.6382410334190993
ns/iter0.83
JSON_Object_Defines_Miss_Same_Length
2.379236223483284
ns/iter2.925572186595005
ns/iter0.81
JSON_Object_Defines_Miss_Too_Small
2.3779830499208705
ns/iter2.718249649963116
ns/iter0.87
JSON_Object_Defines_Miss_Too_Large
2.3685362230764113
ns/iter2.5559707004344143
ns/iter0.93
Pointer_Object_Traverse
18.26172252115055
ns/iter17.134323446935063
ns/iter1.07
Pointer_Object_Try_Traverse
23.68588144455477
ns/iter24.383149683893286
ns/iter0.97
Pointer_Push_Back_Pointer_To_Weak_Pointer
180.05261467732967
ns/iter197.63646902990922
ns/iter0.91
This comment was automatically generated by workflow using github-action-benchmark.
11a33a9
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)
Regex_Lower_S_Or_Upper_S_Asterisk
6.844563616071094
ns/iter7.147975446428438
ns/iter0.96
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar
6.970795758926482
ns/iter7.502809787934586
ns/iter0.93
Regex_Period_Asterisk
6.900215401784188
ns/iter7.227042824878567
ns/iter0.95
Regex_Group_Period_Asterisk_Group
6.878539062500672
ns/iter7.08246093749944
ns/iter0.97
Regex_Period_Plus
7.456861607142429
ns/iter7.67855580357159
ns/iter0.97
Regex_Period
7.3951149553559095
ns/iter7.46789460951887
ns/iter0.99
Regex_Caret_Period_Plus_Dollar
7.171933035713554
ns/iter7.425104910714354
ns/iter0.97
Regex_Caret_Group_Period_Plus_Group_Dollar
7.305022321428823
ns/iter7.226074776784941
ns/iter1.01
Regex_Caret_Period_Asterisk_Dollar
7.04188657570672
ns/iter6.864740594353845
ns/iter1.03
Regex_Caret_Group_Period_Asterisk_Group_Dollar
6.845764508927996
ns/iter6.991833705357767
ns/iter0.98
Regex_Caret_X_Hyphen
14.254191900652053
ns/iter11.850531249999463
ns/iter1.20
Regex_Period_Md_Dollar
151.10101334369136
ns/iter148.24158489991353
ns/iter1.02
Regex_Caret_Slash_Period_Asterisk
10.584266071426946
ns/iter10.644928571429498
ns/iter0.99
Regex_Caret_Period_Range_Dollar
7.53312611607017
ns/iter7.860719866071366
ns/iter0.96
Regex_Nested_Backtrack
606.4551000001757
ns/iter638.666428571355
ns/iter0.95
JSON_Array_Of_Objects_Unique
497.2141999999167
ns/iter455.02657901079345
ns/iter1.09
JSON_Parse_1
81026.23883927049
ns/iter80027.64162314251
ns/iter1.01
JSON_Fast_Hash_Helm_Chart_Lock
66.83645535714179
ns/iter69.87543526784735
ns/iter0.96
JSON_Equality_Helm_Chart_Lock
187.5144542423164
ns/iter195.41790645457885
ns/iter0.96
JSON_String_Equal/10
10.097710937500892
ns/iter9.721643749999842
ns/iter1.04
JSON_String_Equal/100
9.93522049136069
ns/iter9.979635937499507
ns/iter1.00
JSON_String_Equal_Small_By_Perfect_Hash/10
2.171586875000031
ns/iter2.166455937500089
ns/iter1.00
JSON_String_Equal_Small_By_Runtime_Perfect_Hash/10
15.126024553571783
ns/iter14.709906250001126
ns/iter1.03
JSON_String_Fast_Hash/10
4.032457819700725
ns/iter3.7215407076398486
ns/iter1.08
JSON_String_Fast_Hash/100
4.034441406249708
ns/iter3.7134037433689278
ns/iter1.09
JSON_String_Key_Hash/10
7.8205191615166605
ns/iter7.503493303570506
ns/iter1.04
JSON_String_Key_Hash/100
4.026358846474913
ns/iter4.024878906249617
ns/iter1.00
JSON_Object_Defines_Miss_Same_Length
3.7171205290754754
ns/iter3.719395171929634
ns/iter1.00
JSON_Object_Defines_Miss_Too_Small
4.948376785715628
ns/iter3.7128219576558097
ns/iter1.33
JSON_Object_Defines_Miss_Too_Large
3.410099067828573
ns/iter4.961512499999036
ns/iter0.69
Pointer_Object_Traverse
80.14955357142283
ns/iter53.2645267857187
ns/iter1.50
Pointer_Object_Try_Traverse
116.66635937501722
ns/iter67.91901785713809
ns/iter1.72
Pointer_Push_Back_Pointer_To_Weak_Pointer
160.55787946430857
ns/iter185.73593622640337
ns/iter0.86
This comment was automatically generated by workflow using github-action-benchmark.
11a33a9
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.16390949323974
ns/iter54.34749509404063
ns/iter0.83
Pointer_Object_Try_Traverse
26.111382534973224
ns/iter28.983666244883143
ns/iter0.90
Pointer_Push_Back_Pointer_To_Weak_Pointer
144.9049279761811
ns/iter154.076501832303
ns/iter0.94
JSON_Array_Of_Objects_Unique
432.3543943975185
ns/iter442.5835886261339
ns/iter0.98
JSON_Parse_1
33451.40408398043
ns/iter36112.565675629994
ns/iter0.93
JSON_Fast_Hash_Helm_Chart_Lock
62.56616092964772
ns/iter73.8561006466179
ns/iter0.85
JSON_Equality_Helm_Chart_Lock
150.14916566167022
ns/iter152.9936441745487
ns/iter0.98
JSON_String_Equal/10
6.030313865090898
ns/iter6.395072807502929
ns/iter0.94
JSON_String_Equal/100
6.657679394850591
ns/iter7.0058745913644715
ns/iter0.95
JSON_String_Equal_Small_By_Perfect_Hash/10
0.934618627759943
ns/iter0.6594379767577471
ns/iter1.42
JSON_String_Equal_Small_By_Runtime_Perfect_Hash/10
14.288583883154198
ns/iter15.216440897870488
ns/iter0.94
JSON_String_Fast_Hash/10
0.9327954438653635
ns/iter1.008320928849041
ns/iter0.93
JSON_String_Fast_Hash/100
0.9398972460159669
ns/iter1.0031880991937727
ns/iter0.94
JSON_String_Key_Hash/10
1.6764196359396297
ns/iter1.8199935868715253
ns/iter0.92
JSON_String_Key_Hash/100
1.9901229535658163
ns/iter2.1813446860624146
ns/iter0.91
JSON_Object_Defines_Miss_Same_Length
2.5086782802576244
ns/iter3.3377526112056084
ns/iter0.75
JSON_Object_Defines_Miss_Too_Small
2.4894920870454817
ns/iter2.9942160340396624
ns/iter0.83
JSON_Object_Defines_Miss_Too_Large
3.108352550658352
ns/iter2.6439884647410943
ns/iter1.18
Regex_Lower_S_Or_Upper_S_Asterisk
3.4227076820488813
ns/iter3.059171091366654
ns/iter1.12
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar
3.420816557939057
ns/iter3.023870882684113
ns/iter1.13
Regex_Period_Asterisk
3.424576616171009
ns/iter3.0066731142515315
ns/iter1.14
Regex_Group_Period_Asterisk_Group
3.420972487445795
ns/iter3.0254330819692563
ns/iter1.13
Regex_Period_Plus
3.733946174448897
ns/iter3.705628640089904
ns/iter1.01
Regex_Period
3.7409591857185673
ns/iter3.341474013853179
ns/iter1.12
Regex_Caret_Period_Plus_Dollar
3.7308946651251813
ns/iter3.327684905453914
ns/iter1.12
Regex_Caret_Group_Period_Plus_Group_Dollar
3.7322776100461215
ns/iter3.310499342131012
ns/iter1.13
Regex_Caret_Period_Asterisk_Dollar
4.664733973566954
ns/iter3.3089294795128765
ns/iter1.41
Regex_Caret_Group_Period_Asterisk_Group_Dollar
4.666126075688497
ns/iter3.3346111597559487
ns/iter1.40
Regex_Caret_X_Hyphen
12.4313248757565
ns/iter13.23425534471811
ns/iter0.94
Regex_Period_Md_Dollar
89.85685949284017
ns/iter99.91438374615716
ns/iter0.90
Regex_Caret_Slash_Period_Asterisk
8.080048423392693
ns/iter7.910727968161967
ns/iter1.02
Regex_Caret_Period_Range_Dollar
4.663130342025331
ns/iter4.684097184433108
ns/iter1.00
Regex_Nested_Backtrack
940.5691427652416
ns/iter944.3808752434552
ns/iter1.00
This comment was automatically generated by workflow using github-action-benchmark.
11a33a9
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/gcc)
Regex_Lower_S_Or_Upper_S_Asterisk
2.196760277209099
ns/iter2.2832958426894554
ns/iter0.96
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar
2.2322388629451297
ns/iter2.2327621949887217
ns/iter1.00
Regex_Period_Asterisk
2.3215049687761944
ns/iter2.5522930690091035
ns/iter0.91
Regex_Group_Period_Asterisk_Group
2.3500710499001016
ns/iter2.3870303051087363
ns/iter0.98
Regex_Period_Plus
2.0218266456797207
ns/iter1.8560831524774686
ns/iter1.09
Regex_Period
2.1037899700310523
ns/iter1.8317757687395426
ns/iter1.15
Regex_Caret_Period_Plus_Dollar
2.0174590362279674
ns/iter2.2296130586190483
ns/iter0.90
Regex_Caret_Group_Period_Plus_Group_Dollar
2.0201504749374
ns/iter1.8695473004260552
ns/iter1.08
Regex_Caret_Period_Asterisk_Dollar
2.323303586173808
ns/iter2.220666649089393
ns/iter1.05
Regex_Caret_Group_Period_Asterisk_Group_Dollar
2.643869943396479
ns/iter2.4684305859070435
ns/iter1.07
Regex_Caret_X_Hyphen
6.876340459185298
ns/iter7.44995902098891
ns/iter0.92
Regex_Period_Md_Dollar
74.9346184043941
ns/iter79.67971547930026
ns/iter0.94
Regex_Caret_Slash_Period_Asterisk
5.138597757528322
ns/iter4.9396724039931605
ns/iter1.04
Regex_Caret_Period_Range_Dollar
2.533402868271604
ns/iter2.5088013315851443
ns/iter1.01
Regex_Nested_Backtrack
912.6251609121055
ns/iter989.2720892096952
ns/iter0.92
JSON_Array_Of_Objects_Unique
220.5396592765276
ns/iter234.93904460842936
ns/iter0.94
JSON_Parse_1
29117.145683620212
ns/iter25662.577647870687
ns/iter1.13
JSON_Fast_Hash_Helm_Chart_Lock
26.933432085760153
ns/iter26.327074243768735
ns/iter1.02
JSON_Equality_Helm_Chart_Lock
126.15392027961005
ns/iter136.4379546677491
ns/iter0.92
JSON_String_Equal/10
6.533409925520619
ns/iter6.591113439334022
ns/iter0.99
JSON_String_Equal/100
5.4464437338623455
ns/iter5.615534496315439
ns/iter0.97
JSON_String_Equal_Small_By_Perfect_Hash/10
0.8209938713791164
ns/iter1.042296088572728
ns/iter0.79
JSON_String_Equal_Small_By_Runtime_Perfect_Hash/10
3.713139426758567
ns/iter3.8584516407740805
ns/iter0.96
JSON_String_Fast_Hash/10
2.079401748237526
ns/iter2.061697893151242
ns/iter1.01
JSON_String_Fast_Hash/100
2.0781193187743954
ns/iter2.081081571929755
ns/iter1.00
JSON_String_Key_Hash/10
1.5504810253478103
ns/iter1.6007584462672948
ns/iter0.97
JSON_String_Key_Hash/100
2.069647201336622
ns/iter2.120165809145354
ns/iter0.98
JSON_Object_Defines_Miss_Same_Length
1.8472640281530048
ns/iter1.924173899185013
ns/iter0.96
JSON_Object_Defines_Miss_Too_Small
2.044030207526412
ns/iter2.2394217449608966
ns/iter0.91
JSON_Object_Defines_Miss_Too_Large
1.854803647292833
ns/iter2.860982020577568
ns/iter0.65
Pointer_Object_Traverse
58.92435510813561
ns/iter71.47409823587779
ns/iter0.82
Pointer_Object_Try_Traverse
38.5514895762365
ns/iter53.72751278460807
ns/iter0.72
Pointer_Push_Back_Pointer_To_Weak_Pointer
163.53684220010373
ns/iter199.35333580423142
ns/iter0.82
This comment was automatically generated by workflow using github-action-benchmark.