Skip to content

Widen format to any instance type in OpenAPI v3.1 and v3.2 - #3117

Merged
jviotti merged 1 commit into
mainfrom
format-openapi
Nov 23, 2026
Merged

jviotti merged 1 commit into
mainfrom
format-openapi

Conversation

@jviotti

@jviotti jviotti commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Signed-off-by: Juan Cruz Viotti jv@jviotti.com

View guided diff

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

View guided diff | Re-trigger cubic

@augmentcode

augmentcode Bot commented Nov 23, 2026

Copy link
Copy Markdown
🤖 Augment PR Summary

Summary: Broaden format applicability for OpenAPI 3.1 and 3.2.

  • Recognize formats on any JSON instance type, including numbers.
  • Add OpenAPI-specific variants for the 2020-12 format-annotation vocabulary.
  • Add matching variants for the format-assertion vocabulary.
  • Require both the format vocabulary and the relevant OpenAPI base vocabulary.
  • Preserve the keyword’s original vocabulary and annotation/assertion classification.
  • Leave semantic and evaluation-order dependencies unchanged.
  • Keep plain JSON Schema format applicability restricted to strings.
  • Update the variant count and keyword offsets for four additional entries.
  • Add six tests covering both OpenAPI versions, both modes, and missing format vocabularies.

🤖 Was this summary useful? React with 👍 or 👎

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

@github-actions

Copy link
Copy Markdown

Benchmark linux/llvm

Measured against main at 36b0e30.

7 slower, 8 faster, 135 within 5%.

Benchmark main This branch Change
JSON_Prettify_Schema_Web_Of_Things 160.83 us 225.68 us +40.3%
JSON_Prettify_KrakenD 1.87 ms 2.11 ms +13.1%
Schema_Frame_ISO_Language_Root 270.29 ns 296.97 ns +9.9%
Pointer_Position_Tracker_Get_Deeply_Nested 659.05 ns 722.92 ns +9.7%
Pointer_Untracked_Deeply_Nested 1.28 ms 1.35 ms +5.7%
Metapack_Write_OMC_JSON_V2 977.03 us 1.03 ms +5.3%
JSON_Object_Try_At_Sorted_Order_Hint_32 690.95 ns 726.13 ns +5.1%
Schema_Frame_ISO_Language_Locations_To_JSON 29.74 ms 28.25 ms -5.0%
JSON_From_String_Temporary 11.39 ns 10.68 ns -6.2%
JSON_Object_Defines_All_Present_K8_W128 335.21 ns 312.22 ns -6.9%
JSON_Parse_Nested_Containers 40.25 us 35.80 us -11.1%
JSON_Parse_Real_Inexact 5.69 us 4.44 us -21.9%
JSON_Parse_Decimal 9.96 us 7.75 us -22.2%
JSON_Parse_Real 6.38 us 4.68 us -26.6%
JSON_Parse_Integer 5.60 us 3.73 us -33.3%
All 150 benchmarks
Benchmark main This branch Change
MCP_Validate_Headers_64 21.76 us 22.11 us +1.6%
MCP_Intersect_Disjoint_512 746.48 us 779.85 us +4.5%
Regex_Lower_S_Or_Upper_S_Asterisk 2.18 ns 2.18 ns -0.1%
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar 2.18 ns 2.18 ns +0.0%
Regex_Period_Asterisk 2.18 ns 2.18 ns +0.0%
Regex_Group_Period_Asterisk_Group 2.18 ns 2.18 ns +0.0%
Regex_Period_Plus 2.80 ns 2.80 ns +0.1%
Regex_Period 2.49 ns 2.49 ns -0.0%
Regex_Caret_Period_Plus_Dollar 2.49 ns 2.49 ns +0.0%
Regex_Caret_Group_Period_Plus_Group_Dollar 2.80 ns 2.80 ns -0.2%
Regex_Caret_Period_Asterisk_Dollar 3.42 ns 3.42 ns +0.0%
Regex_Caret_Group_Period_Asterisk_Group_Dollar 3.11 ns 3.11 ns +0.0%
Regex_Caret_X_Hyphen 6.53 ns 6.53 ns +0.0%
Regex_Period_Md_Dollar 27.78 ns 28.05 ns +1.0%
Regex_Caret_Slash_Period_Asterisk 6.22 ns 6.22 ns +0.0%
Regex_Caret_Period_Range_Dollar 4.04 ns 4.04 ns -0.0%
Regex_Nested_Backtrack 39.13 ns 39.22 ns +0.2%
JSON_Array_Of_Objects_Unique 439.09 ns 439.14 ns +0.0%
JSON_Array_Of_Integers_Unique_256 4.99 us 4.98 us -0.1%
JSON_Array_Of_Strings_Unique_Colliding_256 205.67 us 205.72 us +0.0%
JSON_Parse_1 4.78 us 4.76 us -0.4%
JSON_Parse_Real 6.38 us 4.68 us -26.6%
JSON_Parse_Real_Inexact 5.69 us 4.44 us -21.9%
JSON_Parse_Decimal 9.96 us 7.75 us -22.2%
JSON_Parse_Schema_ISO_Language 3.53 ms 3.53 ms -0.2%
JSON_Parse_KrakenD 1.13 ms 1.14 ms +0.3%
JSON_Stringify_ISO_Language 1.96 ms 1.97 ms +0.5%
JSON_Prettify_KrakenD 1.87 ms 2.11 ms +13.1%
JSON_Parse_Integer 5.60 us 3.73 us -33.3%
JSON_Parse_String_NonSSO_Plain 3.60 us 3.50 us -3.0%
JSON_Parse_String_SSO_Plain 3.07 us 2.95 us -4.1%
JSON_Parse_String_Escape_Heavy 12.95 us 12.52 us -3.3%
JSON_Parse_Object_Short_Keys 8.33 us 8.68 us +4.2%
JSON_Parse_Object_Scalar_Properties 4.22 us 4.30 us +1.9%
JSON_Parse_Object_Array_Properties 5.53 us 5.29 us -4.4%
JSON_Parse_Object_Object_Properties 5.74 us 5.75 us +0.1%
JSON_Parse_Nested_Containers 40.25 us 35.80 us -11.1%
JSON_Fast_Hash_Helm_Chart_Lock 65.91 ns 65.91 ns +0.0%
JSON_Equality_Helm_Chart_Lock 146.47 ns 145.06 ns -1.0%
JSON_String_Equal_10 6.23 ns 6.23 ns -0.0%
JSON_String_Equal_100 6.54 ns 6.54 ns -0.0%
JSON_String_Equal_Small_By_Perfect_Hash_10 1.10 ns 1.10 ns +0.0%
JSON_String_Equal_Small_By_Runtime_Perfect_Hash_10 10.57 ns 10.57 ns +0.0%
JSON_String_Fast_Hash_10 2.80 ns 2.80 ns -0.0%
JSON_String_Fast_Hash_100 2.80 ns 2.80 ns -0.1%
JSON_String_Key_Hash_10 2.18 ns 2.18 ns -0.1%
JSON_String_Key_Hash_100 2.80 ns 2.80 ns -0.1%
JSON_Object_Defines_Miss_Same_Length 3.73 ns 3.84 ns +2.9%
JSON_Object_Defines_Miss_Same_Length_32 18.37 ns 18.39 ns +0.1%
JSON_Object_Defines_Miss_Same_Length_128 79.87 ns 80.16 ns +0.4%
JSON_Object_Defines_Miss_Too_Small 2.66 ns 2.77 ns +4.0%
JSON_Object_Defines_Miss_Too_Large 2.59 ns 2.71 ns +4.3%
JSON_From_String_Copy 13.52 ns 13.49 ns -0.3%
JSON_From_String_Temporary 11.39 ns 10.68 ns -6.2%
JSON_Number_To_Double 12.77 ns 12.80 ns +0.2%
JSON_Object_At_Last_Key_8 3.44 ns 3.43 ns -0.1%
JSON_Object_At_Last_Key_32 11.81 ns 11.83 ns +0.1%
JSON_Object_At_Last_Key_128 48.22 ns 48.27 ns +0.1%
JSON_Object_At_Last_Key_512 388.38 ns 388.89 ns +0.1%
JSON_Object_At_Only_Key_1 1.24 ns 1.24 ns +0.1%
JSON_Object_At_Key_3 2.18 ns 2.18 ns +0.1%
JSON_Object_At_First_Key_8 1.25 ns 1.25 ns -0.1%
JSON_Object_At_First_Key_32 1.25 ns 1.25 ns -0.1%
JSON_Object_At_First_Key_128 1.25 ns 1.25 ns +0.0%
JSON_Object_At_First_Key_512 1.25 ns 1.24 ns -0.1%
JSON_Object_Iterate_32 12.30 ns 11.86 ns -3.6%
JSON_Object_Iterate_128 49.93 ns 49.91 ns -0.0%
JSON_Object_Defines_All_Present_K2_W8 11.07 ns 11.25 ns +1.7%
JSON_Object_Defines_All_Present_K8_W32 70.02 ns 69.94 ns -0.1%
JSON_Object_Defines_All_Present_K8_W128 335.21 ns 312.22 ns -6.9%
JSON_Object_Defines_All_Present_K32_W128 1.37 us 1.37 us -0.0%
JSON_Object_Try_At_Sequential_NoHint_32 399.84 ns 399.07 ns -0.2%
JSON_Object_Try_At_Sequential_Hint_32 71.79 ns 71.80 ns +0.0%
JSON_Object_At_Key_Sorted_Order_32 218.89 ns 219.16 ns +0.1%
JSON_Object_Try_At_Sorted_Order_Hint_32 690.95 ns 726.13 ns +5.1%
JSON_Divisible_By_Decimal 285.99 ns 298.21 ns +4.3%
JSON_PropertySet_Contains 52.87 ns 52.66 ns -0.4%
JSON_PropertySet_Filter_Object_Properties 37.40 ns 37.71 ns +0.8%
JSON_PropertySet_Insert 569.12 ns 560.51 ns -1.5%
JSON_Stringify_Schema_Web_Of_Things 48.44 us 50.54 us +4.3%
JSON_Prettify_Schema_Web_Of_Things 160.83 us 225.68 us +40.3%
JSON_Object_At_Perfect_Hash 8.64 ns 8.63 ns -0.1%
JSON_Object_Defines_Perfect_Hash 9.75 ns 9.76 ns +0.0%
JSON_Object_Defines_Missing_Perfect_Hash 9.02 ns 9.03 ns +0.1%
JSON_Object_At_Long_Keys 35.94 ns 36.05 ns +0.3%
Pointer_Object_Traverse 19.02 ns 19.05 ns +0.2%
Pointer_Object_Try_Traverse 30.17 ns 30.25 ns +0.3%
Pointer_Object_Traverse_Single_Property 5.29 ns 5.29 ns +0.0%
Pointer_Object_Try_Traverse_Single_Property 7.46 ns 7.47 ns +0.1%
Pointer_Push_Back_Pointer_To_Weak_Pointer 94.84 ns 94.16 ns -0.7%
Pointer_Walker_Schema_ISO_Language 1.51 ms 1.45 ms -3.4%
Pointer_Untracked_Deeply_Nested 1.28 ms 1.35 ms +5.7%
Pointer_Tracked_Deeply_Nested 1.62 ms 1.61 ms -0.6%
Pointer_Position_Tracker_Get_Deeply_Nested 659.05 ns 722.92 ns +9.7%
Schema_Tracker_ISO_Language 4.47 ms 4.50 ms +0.5%
Schema_Tracker_ISO_Language_To_JSON 15.76 ms 16.25 ms +3.1%
Schema_Frame_WoT_References 1.66 ms 1.70 ms +2.0%
Schema_Frame_OMC_References 6.46 ms 6.59 ms +1.9%
Schema_Frame_OMC_Pointers 17.06 ms 17.42 ms +2.1%
Schema_Frame_OMC_Locations 5.18 ms 5.28 ms +2.0%
Schema_Frame_ISO_Language_Locations 13.33 ms 13.56 ms +1.7%
Schema_Frame_ISO_Language_Root 270.29 ns 296.97 ns +9.9%
Schema_Frame_KrakenD_References 8.55 ms 8.67 ms +1.4%
Schema_Frame_KrakenD_Reachable 149.52 ms 145.43 ms -2.7%
Schema_Frame_ISO_Language_Locations_To_JSON 29.74 ms 28.25 ms -5.0%
Schema_Frame_Many_Resources_References 87.23 ms 86.68 ms -0.6%
Schema_Frame_Deeply_Nested_References 9.01 ms 8.97 ms -0.5%
Schema_Format_ISO_Language 17.81 ms 17.96 ms +0.8%
Schema_Bundle_Meta_2020_12 544.12 us 542.53 us -0.3%
Schema_Bundle_Many_Remotes_With_Fragments 5.27 ms 5.23 ms -0.7%
OpenAPI_Frame_GSMTasks_3_0 185.88 ms 177.66 ms -4.4%
OpenAPI_Format_Synthetic_3_1 59.62 ms 57.03 ms -4.3%
OpenAPI_Bundle_Split_3_1 14.25 ms 14.22 ms -0.2%
JSONPath_Descendant_Filter_Nested 1.69 us 1.71 us +1.5%
URITemplateRouter_Create 23.70 us 23.82 us +0.5%
URITemplateRouter_Match 186.88 ns 184.55 ns -1.2%
URITemplateRouterView_Restore 8.17 us 8.19 us +0.2%
URITemplateRouterView_Match 140.49 ns 140.91 ns +0.3%
URITemplateRouterView_Arguments 430.22 ns 433.92 ns +0.9%
URITemplateRouter_Match_BasePath 207.19 ns 207.13 ns -0.0%
URITemplateRouterView_Match_BasePath 164.76 ns 161.88 ns -1.7%
JSONL_Parse_Large 9.82 ms 10.01 ms +2.0%
JSONL_Parse_Large_GZIP 9.95 ms 10.25 ms +3.0%
JSONLD_Catalog_Annotation_List_Populate 596.90 us 619.29 us +3.8%
JSONLD_Catalog_Materialize 3.47 ms 3.50 ms +0.9%
JSONLD_Catalog_Expand 10.70 ms 10.75 ms +0.5%
JSONLD_Member_Expand 59.01 us 59.64 us +1.1%
JSONLD_Catalog_Compact 84.53 ms 85.55 ms +1.2%
HTML_Build_Table_100000 37.08 ms 36.97 ms -0.3%
HTML_Render_Table_100000 1.77 ms 1.80 ms +1.7%
Markdown_To_HTML_Realistic_Document 4.19 ms 4.11 ms -1.9%
Markdown_To_HTML_Pathological 12.97 ms 12.79 ms -1.4%
Markdown_To_HTML_Short_Descriptions 537.04 ns 536.20 ns -0.2%
YAML_Parse_Records 1.39 ms 1.37 ms -1.1%
YAML_Parse_Block_Scalars 474.40 us 474.24 us -0.0%
GZIP_Compress_ISO_Language_Set_3_Locations 33.64 ms 33.73 ms +0.3%
GZIP_Decompress_ISO_Language_Set_3_Locations 5.18 ms 5.19 ms +0.3%
GZIP_Decompress_Default_Level_ISO_Language_Set_3_Locations 7.09 ms 7.09 ms -0.1%
GZIP_Decompress_Stream_Default_Level_ISO_Language_Set_3_Locations 9.19 ms 9.35 ms +1.8%
GZIP_Compress_ISO_Language_Set_3_Schema 2.08 ms 2.08 ms -0.2%
GZIP_Decompress_ISO_Language_Set_3_Schema 415.90 us 419.29 us +0.8%
JOSE_VerifySignature_RS256 46.92 us 46.84 us -0.2%
JOSE_VerifySignature_ES512 1.61 ms 1.61 ms -0.0%
Crypto_CRC32_Large_JSONL 106.01 us 106.09 us +0.1%
Crypto_AES_GCM_Encrypt_128_1KB 27.52 us 27.70 us +0.7%
Crypto_AES_GCM_Decrypt_128_1KB 27.48 us 27.51 us +0.1%
Crypto_AES_GCM_Encrypt_256_1KB 32.58 us 32.82 us +0.7%
Metapack_Parse_OMC_JSON_V2 6.53 ns 6.54 ns +0.0%
Metapack_Read_OMC_JSON_V2 382.61 us 384.97 us +0.6%
Metapack_Write_OMC_JSON_V2 977.03 us 1.03 ms +5.3%

@jviotti
jviotti merged commit 2099c92 into main Nov 23, 2026
14 of 15 checks passed
@jviotti
jviotti deleted the format-openapi branch November 23, 2026 20:51
@github-actions

Copy link
Copy Markdown

Benchmark windows/msvc

Measured against main at 36b0e30.

5 slower, 5 faster, 140 within 5%.

Benchmark main This branch Change
Pointer_Walker_Schema_ISO_Language 6.13 ms 6.96 ms +13.5%
Schema_Frame_Deeply_Nested_References 14.21 ms 16.12 ms +13.4%
JSON_Parse_Real_Inexact 5.52 us 6.15 us +11.4%
Pointer_Object_Traverse_Single_Property 7.89 ns 8.32 ns +5.4%
JSON_Parse_KrakenD 1.80 ms 1.89 ms +5.3%
JSON_Object_Defines_Miss_Same_Length 2.92 ns 2.75 ns -6.0%
Regex_Period_Md_Dollar 47.78 ns 44.32 ns -7.2%
JSON_Array_Of_Integers_Unique_256 5.70 us 5.28 us -7.4%
JSON_From_String_Temporary 65.02 ns 59.66 ns -8.2%
JSON_Divisible_By_Decimal 336.64 ns 301.41 ns -10.5%
All 150 benchmarks
Benchmark main This branch Change
MCP_Validate_Headers_64 26.02 us 26.61 us +2.3%
MCP_Intersect_Disjoint_512 715.19 us 714.71 us -0.1%
Regex_Lower_S_Or_Upper_S_Asterisk 3.84 ns 3.83 ns -0.1%
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar 3.84 ns 3.84 ns -0.1%
Regex_Period_Asterisk 3.84 ns 3.84 ns -0.1%
Regex_Group_Period_Asterisk_Group 3.84 ns 3.84 ns -0.1%
Regex_Period_Plus 3.56 ns 3.57 ns +0.1%
Regex_Period 3.57 ns 3.56 ns -0.1%
Regex_Caret_Period_Plus_Dollar 3.57 ns 3.56 ns -0.0%
Regex_Caret_Group_Period_Plus_Group_Dollar 3.56 ns 3.56 ns +0.1%
Regex_Caret_Period_Asterisk_Dollar 3.84 ns 3.83 ns -0.2%
Regex_Caret_Group_Period_Asterisk_Group_Dollar 3.83 ns 3.84 ns +0.1%
Regex_Caret_X_Hyphen 6.22 ns 6.05 ns -2.8%
Regex_Period_Md_Dollar 47.78 ns 44.32 ns -7.2%
Regex_Caret_Slash_Period_Asterisk 5.88 ns 6.03 ns +2.5%
Regex_Caret_Period_Range_Dollar 4.11 ns 4.11 ns -0.0%
Regex_Nested_Backtrack 61.69 ns 59.80 ns -3.1%
JSON_Array_Of_Objects_Unique 502.50 ns 481.06 ns -4.3%
JSON_Array_Of_Integers_Unique_256 5.70 us 5.28 us -7.4%
JSON_Array_Of_Strings_Unique_Colliding_256 209.92 us 209.90 us -0.0%
JSON_Parse_1 6.86 us 6.82 us -0.7%
JSON_Parse_Real 5.62 us 5.57 us -1.0%
JSON_Parse_Real_Inexact 5.52 us 6.15 us +11.4%
JSON_Parse_Decimal 9.76 us 9.54 us -2.2%
JSON_Parse_Schema_ISO_Language 6.11 ms 6.17 ms +1.0%
JSON_Parse_KrakenD 1.80 ms 1.89 ms +5.3%
JSON_Stringify_ISO_Language 5.27 ms 5.09 ms -3.4%
JSON_Prettify_KrakenD 5.89 ms 5.89 ms +0.0%
JSON_Parse_Integer 4.74 us 4.74 us +0.0%
JSON_Parse_String_NonSSO_Plain 6.30 us 6.47 us +2.7%
JSON_Parse_String_SSO_Plain 3.05 us 3.08 us +0.9%
JSON_Parse_String_Escape_Heavy 16.87 us 16.90 us +0.2%
JSON_Parse_Object_Short_Keys 10.27 us 10.22 us -0.5%
JSON_Parse_Object_Scalar_Properties 5.32 us 5.20 us -2.2%
JSON_Parse_Object_Array_Properties 8.81 us 8.89 us +0.9%
JSON_Parse_Object_Object_Properties 8.94 us 8.99 us +0.5%
JSON_Parse_Nested_Containers 62.75 us 63.02 us +0.4%
JSON_Fast_Hash_Helm_Chart_Lock 90.25 ns 92.52 ns +2.5%
JSON_Equality_Helm_Chart_Lock 163.57 ns 164.52 ns +0.6%
JSON_String_Equal_10 7.69 ns 7.68 ns -0.1%
JSON_String_Equal_100 8.78 ns 8.78 ns +0.0%
JSON_String_Equal_Small_By_Perfect_Hash_10 1.65 ns 1.65 ns +0.1%
JSON_String_Equal_Small_By_Runtime_Perfect_Hash_10 11.26 ns 11.60 ns +2.9%
JSON_String_Fast_Hash_10 5.21 ns 5.21 ns -0.1%
JSON_String_Fast_Hash_100 4.94 ns 4.94 ns +0.0%
JSON_String_Key_Hash_10 3.56 ns 3.56 ns +0.0%
JSON_String_Key_Hash_100 4.39 ns 4.39 ns +0.1%
JSON_Object_Defines_Miss_Same_Length 2.92 ns 2.75 ns -6.0%
JSON_Object_Defines_Miss_Same_Length_32 18.90 ns 18.91 ns +0.1%
JSON_Object_Defines_Miss_Same_Length_128 72.19 ns 71.60 ns -0.8%
JSON_Object_Defines_Miss_Too_Small 2.82 ns 2.87 ns +1.8%
JSON_Object_Defines_Miss_Too_Large 3.56 ns 3.58 ns +0.6%
JSON_From_String_Copy 48.25 ns 49.92 ns +3.5%
JSON_From_String_Temporary 65.02 ns 59.66 ns -8.2%
JSON_Number_To_Double 53.36 ns 55.23 ns +3.5%
JSON_Object_At_Last_Key_8 5.78 ns 5.77 ns -0.3%
JSON_Object_At_Last_Key_32 19.55 ns 19.49 ns -0.3%
JSON_Object_At_Last_Key_128 71.86 ns 71.93 ns +0.1%
JSON_Object_At_Last_Key_512 330.68 ns 328.38 ns -0.7%
JSON_Object_At_Only_Key_1 1.92 ns 1.93 ns +0.4%
JSON_Object_At_Key_3 2.48 ns 2.51 ns +1.0%
JSON_Object_At_First_Key_8 1.92 ns 1.92 ns -0.1%
JSON_Object_At_First_Key_32 1.92 ns 1.92 ns +0.1%
JSON_Object_At_First_Key_128 1.92 ns 1.92 ns +0.1%
JSON_Object_At_First_Key_512 1.92 ns 1.92 ns +0.0%
JSON_Object_Iterate_32 19.23 ns 19.20 ns -0.1%
JSON_Object_Iterate_128 66.38 ns 66.26 ns -0.2%
JSON_Object_Defines_All_Present_K2_W8 6.58 ns 6.59 ns +0.1%
JSON_Object_Defines_All_Present_K8_W32 75.06 ns 75.11 ns +0.1%
JSON_Object_Defines_All_Present_K8_W128 258.89 ns 257.92 ns -0.4%
JSON_Object_Defines_All_Present_K32_W128 1.15 us 1.15 us +0.2%
JSON_Object_Try_At_Sequential_NoHint_32 494.52 ns 494.46 ns -0.0%
JSON_Object_Try_At_Sequential_Hint_32 46.51 ns 46.50 ns -0.0%
JSON_Object_At_Key_Sorted_Order_32 337.22 ns 337.60 ns +0.1%
JSON_Object_Try_At_Sorted_Order_Hint_32 726.04 ns 730.43 ns +0.6%
JSON_Divisible_By_Decimal 336.64 ns 301.41 ns -10.5%
JSON_PropertySet_Contains 58.15 ns 58.03 ns -0.2%
JSON_PropertySet_Filter_Object_Properties 41.47 ns 41.98 ns +1.2%
JSON_PropertySet_Insert 1.02 us 1.01 us -0.9%
JSON_Stringify_Schema_Web_Of_Things 119.77 us 119.97 us +0.2%
JSON_Prettify_Schema_Web_Of_Things 556.07 us 553.27 us -0.5%
JSON_Object_At_Perfect_Hash 9.31 ns 9.30 ns -0.1%
JSON_Object_Defines_Perfect_Hash 12.61 ns 12.61 ns +0.0%
JSON_Object_Defines_Missing_Perfect_Hash 12.87 ns 12.88 ns +0.1%
JSON_Object_At_Long_Keys 34.10 ns 34.04 ns -0.2%
Pointer_Object_Traverse 36.04 ns 35.85 ns -0.5%
Pointer_Object_Try_Traverse 48.24 ns 48.29 ns +0.1%
Pointer_Object_Traverse_Single_Property 7.89 ns 8.32 ns +5.4%
Pointer_Object_Try_Traverse_Single_Property 7.68 ns 7.68 ns -0.0%
Pointer_Push_Back_Pointer_To_Weak_Pointer 109.93 ns 109.72 ns -0.2%
Pointer_Walker_Schema_ISO_Language 6.13 ms 6.96 ms +13.5%
Pointer_Untracked_Deeply_Nested 1.98 ms 1.97 ms -0.7%
Pointer_Tracked_Deeply_Nested 2.70 ms 2.75 ms +1.9%
Pointer_Position_Tracker_Get_Deeply_Nested 457.70 ns 454.49 ns -0.7%
Schema_Tracker_ISO_Language 8.17 ms 8.33 ms +2.0%
Schema_Tracker_ISO_Language_To_JSON 48.99 ms 48.51 ms -1.0%
Schema_Frame_WoT_References 3.12 ms 3.07 ms -1.6%
Schema_Frame_OMC_References 12.14 ms 11.96 ms -1.5%
Schema_Frame_OMC_Pointers 32.55 ms 32.75 ms +0.6%
Schema_Frame_OMC_Locations 9.83 ms 9.87 ms +0.4%
Schema_Frame_ISO_Language_Locations 27.99 ms 28.62 ms +2.2%
Schema_Frame_ISO_Language_Root 1.80 us 1.81 us +0.0%
Schema_Frame_KrakenD_References 18.41 ms 18.42 ms +0.1%
Schema_Frame_KrakenD_Reachable 186.32 ms 181.04 ms -2.8%
Schema_Frame_ISO_Language_Locations_To_JSON 137.64 ms 132.84 ms -3.5%
Schema_Frame_Many_Resources_References 234.46 ms 231.39 ms -1.3%
Schema_Frame_Deeply_Nested_References 14.21 ms 16.12 ms +13.4%
Schema_Format_ISO_Language 33.60 ms 33.37 ms -0.7%
Schema_Bundle_Meta_2020_12 962.63 us 959.43 us -0.3%
Schema_Bundle_Many_Remotes_With_Fragments 13.22 ms 13.11 ms -0.8%
OpenAPI_Frame_GSMTasks_3_0 334.65 ms 333.94 ms -0.2%
OpenAPI_Format_Synthetic_3_1 105.95 ms 106.46 ms +0.5%
OpenAPI_Bundle_Split_3_1 24.07 ms 24.15 ms +0.3%
JSONPath_Descendant_Filter_Nested 2.56 us 2.59 us +1.0%
URITemplateRouter_Create 28.84 us 28.81 us -0.1%
URITemplateRouter_Match 171.84 ns 171.39 ns -0.3%
URITemplateRouterView_Restore 19.83 us 19.62 us -1.1%
URITemplateRouterView_Match 158.79 ns 159.65 ns +0.5%
URITemplateRouterView_Arguments 444.05 ns 441.59 ns -0.6%
URITemplateRouter_Match_BasePath 191.73 ns 188.84 ns -1.5%
URITemplateRouterView_Match_BasePath 181.10 ns 186.62 ns +3.0%
JSONL_Parse_Large 25.53 ms 25.72 ms +0.8%
JSONL_Parse_Large_GZIP 24.34 ms 24.65 ms +1.3%
JSONLD_Catalog_Annotation_List_Populate 2.40 ms 2.36 ms -1.3%
JSONLD_Catalog_Materialize 6.50 ms 6.52 ms +0.4%
JSONLD_Catalog_Expand 21.51 ms 21.85 ms +1.6%
JSONLD_Member_Expand 105.69 us 105.92 us +0.2%
JSONLD_Catalog_Compact 163.80 ms 164.84 ms +0.6%
HTML_Build_Table_100000 72.23 ms 73.75 ms +2.1%
HTML_Render_Table_100000 17.02 ms 16.98 ms -0.2%
Markdown_To_HTML_Realistic_Document 4.48 ms 4.52 ms +0.9%
Markdown_To_HTML_Pathological 13.55 ms 13.49 ms -0.4%
Markdown_To_HTML_Short_Descriptions 565.84 ns 569.39 ns +0.6%
YAML_Parse_Records 1.64 ms 1.67 ms +1.5%
YAML_Parse_Block_Scalars 455.93 us 457.90 us +0.4%
GZIP_Compress_ISO_Language_Set_3_Locations 31.10 ms 31.04 ms -0.2%
GZIP_Decompress_ISO_Language_Set_3_Locations 8.11 ms 8.23 ms +1.5%
GZIP_Decompress_Default_Level_ISO_Language_Set_3_Locations 10.13 ms 10.34 ms +2.1%
GZIP_Decompress_Stream_Default_Level_ISO_Language_Set_3_Locations 12.24 ms 12.58 ms +2.8%
GZIP_Compress_ISO_Language_Set_3_Schema 2.03 ms 2.02 ms -0.3%
GZIP_Decompress_ISO_Language_Set_3_Schema 440.68 us 457.44 us +3.8%
JOSE_VerifySignature_RS256 18.39 us 18.43 us +0.2%
JOSE_VerifySignature_ES512 1.18 ms 1.18 ms -0.1%
Crypto_CRC32_Large_JSONL 89.95 us 89.92 us -0.0%
Crypto_AES_GCM_Encrypt_128_1KB 1.89 us 1.85 us -2.0%
Crypto_AES_GCM_Decrypt_128_1KB 1.84 us 1.84 us -0.1%
Crypto_AES_GCM_Encrypt_256_1KB 1.95 us 1.91 us -1.9%
Metapack_Parse_OMC_JSON_V2 9.04 ns 9.04 ns +0.1%
Metapack_Read_OMC_JSON_V2 510.63 us 507.15 us -0.7%
Metapack_Write_OMC_JSON_V2 1.38 ms 1.36 ms -0.8%

@github-actions

Copy link
Copy Markdown

Benchmark linux/gcc

Measured against main at 36b0e30.

1 slower, 6 faster, 143 within 5%.

Benchmark main This branch Change
MCP_Intersect_Disjoint_512 536.76 us 591.25 us +10.2%
JSON_String_Key_Hash_100 1.79 ns 1.70 ns -5.0%
Metapack_Read_OMC_JSON_V2 343.61 us 325.58 us -5.2%
Metapack_Write_OMC_JSON_V2 705.14 us 667.17 us -5.4%
Pointer_Position_Tracker_Get_Deeply_Nested 559.28 ns 524.94 ns -6.1%
JSON_String_Key_Hash_10 1.53 ns 1.43 ns -6.2%
JSON_Fast_Hash_Helm_Chart_Lock 58.85 ns 51.80 ns -12.0%
All 150 benchmarks
Benchmark main This branch Change
Metapack_Parse_OMC_JSON_V2 1.94 ns 1.91 ns -1.6%
Metapack_Read_OMC_JSON_V2 343.61 us 325.58 us -5.2%
Metapack_Write_OMC_JSON_V2 705.14 us 667.17 us -5.4%
Crypto_CRC32_Large_JSONL 91.37 us 88.82 us -2.8%
Crypto_AES_GCM_Encrypt_128_1KB 635.52 ns 636.38 ns +0.1%
Crypto_AES_GCM_Decrypt_128_1KB 642.67 ns 645.48 ns +0.4%
Crypto_AES_GCM_Encrypt_256_1KB 669.63 ns 665.24 ns -0.7%
JOSE_VerifySignature_RS256 18.17 us 18.05 us -0.6%
JOSE_VerifySignature_ES512 503.58 us 500.01 us -0.7%
GZIP_Compress_ISO_Language_Set_3_Locations 24.66 ms 24.61 ms -0.2%
GZIP_Decompress_ISO_Language_Set_3_Locations 4.16 ms 4.16 ms +0.0%
GZIP_Decompress_Default_Level_ISO_Language_Set_3_Locations 5.51 ms 5.49 ms -0.4%
GZIP_Decompress_Stream_Default_Level_ISO_Language_Set_3_Locations 6.81 ms 6.72 ms -1.2%
GZIP_Compress_ISO_Language_Set_3_Schema 1.79 ms 1.77 ms -1.3%
GZIP_Decompress_ISO_Language_Set_3_Schema 258.52 us 254.60 us -1.5%
YAML_Parse_Records 968.11 us 946.48 us -2.2%
YAML_Parse_Block_Scalars 251.99 us 254.10 us +0.8%
Markdown_To_HTML_Realistic_Document 3.22 ms 3.11 ms -3.2%
Markdown_To_HTML_Pathological 11.02 ms 10.80 ms -2.0%
Markdown_To_HTML_Short_Descriptions 403.33 ns 394.25 ns -2.2%
HTML_Build_Table_100000 32.93 ms 32.41 ms -1.6%
HTML_Render_Table_100000 1.90 ms 1.86 ms -2.3%
JSONLD_Catalog_Annotation_List_Populate 549.88 us 531.91 us -3.3%
JSONLD_Catalog_Materialize 2.85 ms 2.78 ms -2.3%
JSONLD_Catalog_Expand 8.51 ms 8.37 ms -1.6%
JSONLD_Member_Expand 45.08 us 45.65 us +1.3%
JSONLD_Catalog_Compact 71.40 ms 69.96 ms -2.0%
JSONL_Parse_Large 7.74 ms 7.74 ms -0.1%
JSONL_Parse_Large_GZIP 7.92 ms 7.90 ms -0.3%
URITemplateRouter_Create 16.76 us 16.48 us -1.7%
URITemplateRouter_Match 116.25 ns 113.16 ns -2.7%
URITemplateRouterView_Restore 7.34 us 7.40 us +0.8%
URITemplateRouterView_Match 101.72 ns 102.68 ns +0.9%
URITemplateRouterView_Arguments 722.52 ns 718.47 ns -0.6%
URITemplateRouter_Match_BasePath 134.58 ns 129.55 ns -3.7%
URITemplateRouterView_Match_BasePath 121.12 ns 120.53 ns -0.5%
JSONPath_Descendant_Filter_Nested 1.47 us 1.42 us -3.3%
OpenAPI_Frame_GSMTasks_3_0 135.23 ms 132.15 ms -2.3%
OpenAPI_Format_Synthetic_3_1 46.02 ms 44.49 ms -3.3%
OpenAPI_Bundle_Split_3_1 11.64 ms 11.33 ms -2.7%
Schema_Frame_WoT_References 1.33 ms 1.27 ms -4.6%
Schema_Frame_OMC_References 5.12 ms 4.95 ms -3.4%
Schema_Frame_OMC_Pointers 13.55 ms 13.07 ms -3.5%
Schema_Frame_OMC_Locations 4.10 ms 3.96 ms -3.5%
Schema_Frame_ISO_Language_Locations 10.03 ms 10.00 ms -0.3%
Schema_Frame_ISO_Language_Root 220.73 ns 220.77 ns +0.0%
Schema_Frame_KrakenD_References 6.64 ms 6.53 ms -1.6%
Schema_Frame_KrakenD_Reachable 101.65 ms 100.09 ms -1.5%
Schema_Frame_ISO_Language_Locations_To_JSON 26.56 ms 26.22 ms -1.3%
Schema_Frame_Many_Resources_References 69.67 ms 69.62 ms -0.1%
Schema_Frame_Deeply_Nested_References 7.00 ms 6.97 ms -0.5%
Schema_Format_ISO_Language 13.96 ms 13.97 ms +0.1%
Schema_Bundle_Meta_2020_12 407.79 us 402.62 us -1.3%
Schema_Bundle_Many_Remotes_With_Fragments 4.04 ms 3.99 ms -1.4%
Pointer_Object_Traverse 12.02 ns 11.94 ns -0.6%
Pointer_Object_Try_Traverse 20.94 ns 20.71 ns -1.1%
Pointer_Object_Traverse_Single_Property 4.31 ns 4.19 ns -2.7%
Pointer_Object_Try_Traverse_Single_Property 5.39 ns 5.22 ns -3.2%
Pointer_Push_Back_Pointer_To_Weak_Pointer 64.89 ns 61.73 ns -4.9%
Pointer_Walker_Schema_ISO_Language 1.07 ms 1.05 ms -2.1%
Pointer_Untracked_Deeply_Nested 1.28 ms 1.26 ms -1.5%
Pointer_Tracked_Deeply_Nested 1.74 ms 1.69 ms -2.6%
Pointer_Position_Tracker_Get_Deeply_Nested 559.28 ns 524.94 ns -6.1%
Schema_Tracker_ISO_Language 4.20 ms 4.12 ms -1.8%
Schema_Tracker_ISO_Language_To_JSON 12.22 ms 12.12 ms -0.8%
JSON_Array_Of_Objects_Unique 346.96 ns 344.93 ns -0.6%
JSON_Array_Of_Integers_Unique_256 3.27 us 3.32 us +1.4%
JSON_Array_Of_Strings_Unique_Colliding_256 162.11 us 159.25 us -1.8%
JSON_Parse_1 4.33 us 4.31 us -0.6%
JSON_Parse_Real 4.13 us 4.06 us -1.7%
JSON_Parse_Real_Inexact 4.10 us 4.09 us -0.2%
JSON_Parse_Decimal 6.98 us 6.95 us -0.3%
JSON_Parse_Schema_ISO_Language 3.08 ms 3.00 ms -2.6%
JSON_Parse_KrakenD 1.24 ms 1.22 ms -1.0%
JSON_Stringify_ISO_Language 1.58 ms 1.56 ms -1.3%
JSON_Prettify_KrakenD 1.49 ms 1.45 ms -2.5%
JSON_Parse_Integer 3.82 us 3.72 us -2.5%
JSON_Parse_String_NonSSO_Plain 3.31 us 3.22 us -2.9%
JSON_Parse_String_SSO_Plain 2.51 us 2.45 us -2.0%
JSON_Parse_String_Escape_Heavy 14.31 us 14.12 us -1.4%
JSON_Parse_Object_Short_Keys 9.25 us 8.96 us -3.2%
JSON_Parse_Object_Scalar_Properties 4.63 us 4.52 us -2.4%
JSON_Parse_Object_Array_Properties 5.39 us 5.15 us -4.4%
JSON_Parse_Object_Object_Properties 5.42 us 5.19 us -4.3%
JSON_Parse_Nested_Containers 35.44 us 34.23 us -3.4%
JSON_Fast_Hash_Helm_Chart_Lock 58.85 ns 51.80 ns -12.0%
JSON_Equality_Helm_Chart_Lock 137.16 ns 130.45 ns -4.9%
JSON_String_Equal_10 5.74 ns 5.53 ns -3.7%
JSON_String_Equal_100 6.64 ns 6.34 ns -4.5%
JSON_String_Equal_Small_By_Perfect_Hash_10 0.57 ns 0.55 ns -3.5%
JSON_String_Equal_Small_By_Runtime_Perfect_Hash_10 9.85 ns 9.55 ns -3.0%
JSON_String_Fast_Hash_10 1.78 ns 1.71 ns -4.0%
JSON_String_Fast_Hash_100 1.79 ns 1.71 ns -4.7%
JSON_String_Key_Hash_10 1.53 ns 1.43 ns -6.2%
JSON_String_Key_Hash_100 1.79 ns 1.70 ns -5.0%
JSON_Object_Defines_Miss_Same_Length 2.84 ns 2.73 ns -4.1%
JSON_Object_Defines_Miss_Same_Length_32 13.38 ns 12.77 ns -4.5%
JSON_Object_Defines_Miss_Same_Length_128 41.53 ns 40.11 ns -3.4%
JSON_Object_Defines_Miss_Too_Small 2.79 ns 2.74 ns -2.1%
JSON_Object_Defines_Miss_Too_Large 2.84 ns 2.73 ns -3.9%
JSON_From_String_Copy 8.85 ns 8.78 ns -0.8%
JSON_From_String_Temporary 8.24 ns 7.86 ns -4.6%
JSON_Number_To_Double 20.69 ns 20.61 ns -0.4%
JSON_Object_At_Last_Key_8 2.79 ns 2.76 ns -0.9%
JSON_Object_At_Last_Key_32 9.70 ns 9.55 ns -1.5%
JSON_Object_At_Last_Key_128 35.92 ns 35.73 ns -0.5%
JSON_Object_At_Last_Key_512 193.64 ns 193.22 ns -0.2%
JSON_Object_At_Only_Key_1 1.11 ns 1.09 ns -1.4%
JSON_Object_At_Key_3 1.46 ns 1.46 ns -0.3%
JSON_Object_At_First_Key_8 0.93 ns 0.93 ns -0.4%
JSON_Object_At_First_Key_32 0.93 ns 0.92 ns -0.4%
JSON_Object_At_First_Key_128 0.93 ns 0.93 ns -0.3%
JSON_Object_At_First_Key_512 0.93 ns 0.93 ns -0.1%
JSON_Object_Iterate_32 8.81 ns 8.78 ns -0.4%
JSON_Object_Iterate_128 51.84 ns 51.81 ns -0.1%
JSON_Object_Defines_All_Present_K2_W8 4.91 ns 4.91 ns +0.1%
JSON_Object_Defines_All_Present_K8_W32 54.37 ns 54.30 ns -0.1%
JSON_Object_Defines_All_Present_K8_W128 180.05 ns 179.75 ns -0.2%
JSON_Object_Defines_All_Present_K32_W128 795.71 ns 795.91 ns +0.0%
JSON_Object_Try_At_Sequential_NoHint_32 243.87 ns 243.84 ns -0.0%
JSON_Object_Try_At_Sequential_Hint_32 90.28 ns 88.80 ns -1.6%
JSON_Object_At_Key_Sorted_Order_32 305.84 ns 305.90 ns +0.0%
JSON_Object_Try_At_Sorted_Order_Hint_32 505.84 ns 506.98 ns +0.2%
JSON_Divisible_By_Decimal 246.18 ns 246.69 ns +0.2%
JSON_PropertySet_Contains 33.85 ns 33.83 ns -0.1%
JSON_PropertySet_Filter_Object_Properties 27.29 ns 27.22 ns -0.3%
JSON_PropertySet_Insert 307.38 ns 313.94 ns +2.1%
JSON_Stringify_Schema_Web_Of_Things 35.66 us 35.39 us -0.8%
JSON_Prettify_Schema_Web_Of_Things 112.90 us 113.66 us +0.7%
JSON_Object_At_Perfect_Hash 9.75 ns 9.74 ns -0.1%
JSON_Object_Defines_Perfect_Hash 9.86 ns 9.86 ns -0.0%
JSON_Object_Defines_Missing_Perfect_Hash 10.20 ns 10.20 ns +0.0%
JSON_Object_At_Long_Keys 30.03 ns 29.69 ns -1.1%
Regex_Lower_S_Or_Upper_S_Asterisk 1.84 ns 1.84 ns -0.1%
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar 1.84 ns 1.84 ns -0.1%
Regex_Period_Asterisk 1.85 ns 1.84 ns -0.5%
Regex_Group_Period_Asterisk_Group 1.85 ns 1.84 ns -0.3%
Regex_Period_Plus 1.85 ns 1.84 ns -0.2%
Regex_Period 1.91 ns 1.91 ns -0.1%
Regex_Caret_Period_Plus_Dollar 1.85 ns 1.84 ns -0.3%
Regex_Caret_Group_Period_Plus_Group_Dollar 1.84 ns 1.84 ns -0.2%
Regex_Caret_Period_Asterisk_Dollar 1.84 ns 1.84 ns -0.1%
Regex_Caret_Group_Period_Asterisk_Group_Dollar 1.84 ns 1.84 ns -0.1%
Regex_Caret_X_Hyphen 4.02 ns 4.02 ns +0.0%
Regex_Period_Md_Dollar 25.90 ns 25.29 ns -2.4%
Regex_Caret_Slash_Period_Asterisk 4.59 ns 4.57 ns -0.4%
Regex_Caret_Period_Range_Dollar 3.48 ns 3.48 ns -0.1%
Regex_Nested_Backtrack 33.06 ns 32.46 ns -1.8%
MCP_Validate_Headers_64 14.68 us 14.76 us +0.5%
MCP_Intersect_Disjoint_512 536.76 us 591.25 us +10.2%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant