Repository navigation
Enforce a maximum cognitive complexity of 100 per function - #3116
Conversation
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
|
This pull request is abnormally large and would use a significant amount of tokens to review. If you still wish to review it, comment "augment review" and we will review it. |
There was a problem hiding this comment.
7 issues found across 20 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="src/spec/gzip/inflate.h">
<violation number="1" location="src/spec/gzip/inflate.h:1325">
P3: The `// Returns whether the block ended` comment now describes `decode_literal_run`, which does not return that. Move it above `decode_huffman_fast`, which returns `block_ended`, and add a blank line between the two methods.</violation>
</file>
<file name="src/spec/jsonschema/bundle.cc">
<violation number="1" location="src/spec/jsonschema/bundle.cc:1392">
P3: The extraction lowers the cognitive complexity of `expand_references`, but the new helper now takes 16 parameters, several of them output parameters. Grouping the per-document inputs and the `serving_*`/`reached`/`ref_rewrites` outputs into a context struct would make the signature and call site easier to read and change.</violation>
</file>
<file name="src/spec/regex/permissive.h">
<violation number="1" location="src/spec/regex/permissive.h:711">
P3: Move these helpers into the anonymous namespace with the other helpers, above `} // namespace`. Placing them at namespace scope exposes internal parsing helpers in `sourcemeta::core`.</violation>
<violation number="2" location="src/spec/regex/permissive.h:712">
P3: `position` is never read in this helper, so it triggers `-Wunused-parameter` under the project’s default GCC/Clang flags. Remove it from the helper signature and its call.</violation>
</file>
<file name="src/spec/yaml/parser.h">
<violation number="1" location="src/spec/yaml/parser.h:786">
P3: `parse_value_by_type` now has 13 parameters, and its `anchor_name` reset is a hidden contract: `parse_value` relies on it to avoid re-registering the anchor after the switch. Bundling the per-node anchor, tag, and key-position state into a small struct would make that contract explicit and shorten the signature.</violation>
</file>
<file name="src/spec/openapi/bundle.cc">
<violation number="1" location="src/spec/openapi/bundle.cc:2063">
P3: The 18-argument list with several same-typed maps and two `OpenAPIWalk` parameters is easy to misorder without a compiler error. Bundle the shared bundling state (`documents`, `walks`, `bundled`, `inlined`, `unavailable`, `identifiers`, `deferred`, `names`, `changed`) into a single context struct passed by reference.</violation>
</file>
<file name="cmake/common/clang-tidy.json">
<violation number="1" location="cmake/common/clang-tidy.json:9">
P2: This setting excludes macro arguments from the complexity score, so complex conditions passed through macros can evade the new 100-point limit. Set `IgnoreMacros` to `false` to include those expressions.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
| "CheckOptions": { | ||
| "bugprone-empty-catch.IgnoreCatchWithKeywords": "@TODO;@FIXME;expected", | ||
| "portability-restrict-system-includes.Includes": "*,-expected", | ||
| "readability-function-cognitive-complexity.IgnoreMacros": "true", |
There was a problem hiding this comment.
P2: This setting excludes macro arguments from the complexity score, so complex conditions passed through macros can evade the new 100-point limit. Set IgnoreMacros to false to include those expressions.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At cmake/common/clang-tidy.json, line 9:
<comment>This setting excludes macro arguments from the complexity score, so complex conditions passed through macros can evade the new 100-point limit. Set `IgnoreMacros` to `false` to include those expressions.</comment>
<file context>
@@ -1,11 +1,13 @@
"CheckOptions": {
"bugprone-empty-catch.IgnoreCatchWithKeywords": "@TODO;@FIXME;expected",
"portability-restrict-system-includes.Includes": "*,-expected",
+ "readability-function-cognitive-complexity.IgnoreMacros": "true",
+ "readability-function-cognitive-complexity.Threshold": "100",
"readability-identifier-length.IgnoredVariableNames": "^([a-h]|[x-z]|r|s|iv|IV)$",
</file context>
| "readability-function-cognitive-complexity.IgnoreMacros": "true", | |
| "readability-function-cognitive-complexity.IgnoreMacros": "false", |
|
|
||
| // Returns whether the block ended | ||
|
|
||
| // A run of literals from the primary table, which the margins let this |
There was a problem hiding this comment.
P3: The // Returns whether the block ended comment now describes decode_literal_run, which does not return that. Move it above decode_huffman_fast, which returns block_ended, and add a blank line between the two methods.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At src/spec/gzip/inflate.h, line 1325:
<comment>The `// Returns whether the block ended` comment now describes `decode_literal_run`, which does not return that. Move it above `decode_huffman_fast`, which returns `block_ended`, and add a blank line between the two methods.</comment>
<file context>
@@ -1321,6 +1321,47 @@ class InflateDecoder {
// Returns whether the block ended
+
+ // A run of literals from the primary table, which the margins let this
+ // emit without re-checking the buffers between them. Answers whether
+ // the decode loop carries on
</file context>
|
|
||
| // One reference the document does not already answer, which may bring a | ||
| // whole remote schema in with it | ||
| auto expand_unresolved_reference( |
There was a problem hiding this comment.
P3: The extraction lowers the cognitive complexity of expand_references, but the new helper now takes 16 parameters, several of them output parameters. Grouping the per-document inputs and the serving_*/reached/ref_rewrites outputs into a context struct would make the signature and call site easier to read and change.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At src/spec/jsonschema/bundle.cc, line 1392:
<comment>The extraction lowers the cognitive complexity of `expand_references`, but the new helper now takes 16 parameters, several of them output parameters. Grouping the per-document inputs and the `serving_*`/`reached`/`ref_rewrites` outputs into a context struct would make the signature and call site easier to read and change.</comment>
<file context>
@@ -1387,6 +1387,367 @@ auto fragment_is_there(const JSON &document, const std::string_view destination)
+// One reference the document does not already answer, which may bring a
+// whole remote schema in with it
+auto expand_unresolved_reference(
+ const WeakPointer &pointer, const SchemaFrame::Reference &reference,
+ BundleState &state, const SchemaWalker &walker,
</file context>
|
|
||
| // A group opener, which this dialect allows only in the forms the | ||
| // specification names (RFC 9485 Section 3) | ||
| inline auto check_group_opener(const std::string &pattern, |
There was a problem hiding this comment.
P3: Move these helpers into the anonymous namespace with the other helpers, above } // namespace. Placing them at namespace scope exposes internal parsing helpers in sourcemeta::core.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At src/spec/regex/permissive.h, line 711:
<comment>Move these helpers into the anonymous namespace with the other helpers, above `} // namespace`. Placing them at namespace scope exposes internal parsing helpers in `sourcemeta::core`.</comment>
<file context>
@@ -706,6 +706,81 @@ inline auto exceeds_class_depth(const std::string &pattern) -> bool {
+// A group opener, which this dialect allows only in the forms the
+// specification names (RFC 9485 Section 3)
+inline auto check_group_opener(const std::string &pattern,
+ std::size_t &position, bool &ecma_valid)
+ -> void {
</file context>
|
|
||
| // The value that a token of each type introduces, written into the | ||
| // result the caller is building (YAML 1.2.2 Section 8) | ||
| auto parse_value_by_type( |
There was a problem hiding this comment.
P3: parse_value_by_type now has 13 parameters, and its anchor_name reset is a hidden contract: parse_value relies on it to avoid re-registering the anchor after the switch. Bundling the per-node anchor, tag, and key-position state into a small struct would make that contract explicit and shorten the signature.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At src/spec/yaml/parser.h, line 786:
<comment>`parse_value_by_type` now has 13 parameters, and its `anchor_name` reset is a hidden contract: `parse_value` relies on it to avoid re-registering the anchor after the switch. Bundling the per-node anchor, tag, and key-position state into a small struct would make that contract explicit and shorten the signature.</comment>
<file context>
@@ -781,6 +781,161 @@ class Parser {
+ // The value that a token of each type introduces, written into the
+ // result the caller is building (YAML 1.2.2 Section 8)
+ auto parse_value_by_type(
+ const Token &token, const Token ¤t_token,
+ const JSON::ParseContext context, const std::size_t index,
</file context>
| const Reference &reference, JSON &document, const SchemaWalker &walker, | ||
| const SchemaResolver &schema_resolver, const OpenAPIResolver &resolver, | ||
| const OpenAPIBundleOptions &options, std::uint64_t &remaining, | ||
| const Walk &walk, const JSON::String &base, |
There was a problem hiding this comment.
P3: The 18-argument list with several same-typed maps and two OpenAPIWalk parameters is easy to misorder without a compiler error. Bundle the shared bundling state (documents, walks, bundled, inlined, unavailable, identifiers, deferred, names, changed) into a single context struct passed by reference.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At src/spec/openapi/bundle.cc, line 2063:
<comment>The 18-argument list with several same-typed maps and two `OpenAPIWalk` parameters is easy to misorder without a compiler error. Bundle the shared bundling state (`documents`, `walks`, `bundled`, `inlined`, `unavailable`, `identifiers`, `deferred`, `names`, `changed`) into a single context struct passed by reference.</comment>
<file context>
@@ -2053,6 +2053,409 @@ auto adopt_mappings(
+ const Reference &reference, JSON &document, const SchemaWalker &walker,
+ const SchemaResolver &schema_resolver, const OpenAPIResolver &resolver,
+ const OpenAPIBundleOptions &options, std::uint64_t &remaining,
+ const Walk &walk, const JSON::String &base,
+ std::map<JSON::String, JSON> &documents,
+ std::map<JSON::String, Pointer> &bundled, OpenAPIInlined &inlined,
</file context>
| // A group opener, which this dialect allows only in the forms the | ||
| // specification names (RFC 9485 Section 3) | ||
| inline auto check_group_opener(const std::string &pattern, | ||
| std::size_t &position, bool &ecma_valid) |
There was a problem hiding this comment.
P3: position is never read in this helper, so it triggers -Wunused-parameter under the project’s default GCC/Clang flags. Remove it from the helper signature and its call.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At src/spec/regex/permissive.h, line 712:
<comment>`position` is never read in this helper, so it triggers `-Wunused-parameter` under the project’s default GCC/Clang flags. Remove it from the helper signature and its call.</comment>
<file context>
@@ -706,6 +706,81 @@ inline auto exceeds_class_depth(const std::string &pattern) -> bool {
+// A group opener, which this dialect allows only in the forms the
+// specification names (RFC 9485 Section 3)
+inline auto check_group_opener(const std::string &pattern,
+ std::size_t &position, bool &ecma_valid)
+ -> void {
+ // (*...) backtracking control verbs
</file context>
Benchmark
|
| Benchmark | main |
This branch | Change |
|---|---|---|---|
JSON_Object_Defines_Miss_Same_Length |
2.68 ns | 3.73 ns | +39.4% |
JSON_Object_Try_At_Sequential_NoHint_32 |
296.66 ns | 399.42 ns | +34.6% |
JSON_Object_Defines_All_Present_K2_W8 |
8.45 ns | 11.28 ns | +33.5% |
JSON_String_Fast_Hash_10 |
2.22 ns | 2.80 ns | +26.0% |
JSON_String_Fast_Hash_100 |
2.22 ns | 2.80 ns | +25.8% |
JSON_Fast_Hash_Helm_Chart_Lock |
54.73 ns | 65.90 ns | +20.4% |
JSON_Object_Try_At_Sequential_Hint_32 |
60.98 ns | 71.82 ns | +17.8% |
JSON_Object_At_Key_3 |
1.87 ns | 2.18 ns | +16.5% |
JSON_String_Equal_10 |
6.26 ns | 7.16 ns | +14.3% |
JSON_String_Equal_100 |
6.54 ns | 7.47 ns | +14.3% |
JSON_Array_Of_Integers_Unique_256 |
4.44 us | 4.98 us | +12.2% |
JSON_Object_Defines_All_Present_K8_W128 |
288.97 ns | 322.06 ns | +11.4% |
JSON_Object_At_Long_Keys |
32.36 ns | 35.93 ns | +11.0% |
JSON_Array_Of_Objects_Unique |
399.64 ns | 443.65 ns | +11.0% |
URITemplateRouter_Match |
170.67 ns | 185.79 ns | +8.9% |
Pointer_Object_Try_Traverse_Single_Property |
6.86 ns | 7.46 ns | +8.7% |
URITemplateRouter_Match_BasePath |
195.34 ns | 209.99 ns | +7.5% |
JSON_Parse_Real_Inexact |
4.12 us | 4.39 us | +6.7% |
Schema_Frame_ISO_Language_Root |
250.68 ns | 266.76 ns | +6.4% |
JSON_Object_Try_At_Sorted_Order_Hint_32 |
697.59 ns | 741.29 ns | +6.3% |
JSON_From_String_Temporary |
10.71 ns | 11.38 ns | +6.2% |
Regex_Caret_Slash_Period_Asterisk |
5.91 ns | 6.22 ns | +5.3% |
OpenAPI_Bundle_Split_3_1 |
n/a | 14.25 ms | new |
JSONLD_Catalog_Expand |
n/a | 10.93 ms | new |
JSONLD_Member_Expand |
n/a | 60.05 us | new |
JSONLD_Catalog_Compact |
n/a | 86.59 ms | new |
YAML_Parse_Records |
n/a | 1.39 ms | new |
YAML_Parse_Block_Scalars |
n/a | 487.36 us | new |
JSON_Object_Defines_Miss_Too_Large |
2.73 ns | 2.58 ns | -5.7% |
JSON_Object_At_Last_Key_8 |
3.65 ns | 3.43 ns | -6.0% |
JSON_Object_Defines_All_Present_K32_W128 |
1.46 us | 1.37 us | -6.4% |
Pointer_Position_Tracker_Get_Deeply_Nested |
706.76 ns | 657.40 ns | -7.0% |
Regex_Caret_Group_Period_Plus_Group_Dollar |
2.80 ns | 2.49 ns | -11.1% |
Regex_Period_Asterisk |
2.49 ns | 2.18 ns | -12.5% |
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar |
2.49 ns | 2.17 ns | -12.7% |
Regex_Caret_Period_Range_Dollar |
4.66 ns | 4.04 ns | -13.3% |
JSON_String_Equal_Small_By_Perfect_Hash_10 |
1.26 ns | 1.08 ns | -14.1% |
Regex_Period |
3.11 ns | 2.49 ns | -20.0% |
JSON_Object_Defines_All_Present_K8_W32 |
90.46 ns | 69.92 ns | -22.7% |
Regex_Caret_Period_Plus_Dollar |
3.11 ns | 2.21 ns | -29.0% |
JSON_Object_Defines_Miss_Too_Small |
3.84 ns | 2.72 ns | -29.2% |
Regex_Caret_Period_Asterisk_Dollar |
3.42 ns | 2.20 ns | -35.7% |
JSON_Object_Iterate_32 |
20.82 ns | 12.30 ns | -40.9% |
Regex_Caret_Group_Period_Asterisk_Group_Dollar |
3.74 ns | 2.18 ns | -41.7% |
JSON_Object_At_Last_Key_32 |
21.45 ns | 11.81 ns | -44.9% |
All 150 benchmarks
| Benchmark | main |
This branch | Change |
|---|---|---|---|
MCP_Validate_Headers_64 |
21.24 us | 21.92 us | +3.2% |
MCP_Intersect_Disjoint_512 |
723.05 us | 751.34 us | +3.9% |
Regex_Lower_S_Or_Upper_S_Asterisk |
2.18 ns | 2.19 ns | +0.3% |
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar |
2.49 ns | 2.17 ns | -12.7% |
Regex_Period_Asterisk |
2.49 ns | 2.18 ns | -12.5% |
Regex_Group_Period_Asterisk_Group |
2.18 ns | 2.19 ns | +0.6% |
Regex_Period_Plus |
2.80 ns | 2.80 ns | -0.0% |
Regex_Period |
3.11 ns | 2.49 ns | -20.0% |
Regex_Caret_Period_Plus_Dollar |
3.11 ns | 2.21 ns | -29.0% |
Regex_Caret_Group_Period_Plus_Group_Dollar |
2.80 ns | 2.49 ns | -11.1% |
Regex_Caret_Period_Asterisk_Dollar |
3.42 ns | 2.20 ns | -35.7% |
Regex_Caret_Group_Period_Asterisk_Group_Dollar |
3.74 ns | 2.18 ns | -41.7% |
Regex_Caret_X_Hyphen |
5.68 ns | 5.60 ns | -1.4% |
Regex_Period_Md_Dollar |
27.99 ns | 27.73 ns | -0.9% |
Regex_Caret_Slash_Period_Asterisk |
5.91 ns | 6.22 ns | +5.3% |
Regex_Caret_Period_Range_Dollar |
4.66 ns | 4.04 ns | -13.3% |
Regex_Nested_Backtrack |
39.05 ns | 39.68 ns | +1.6% |
JSON_Array_Of_Objects_Unique |
399.64 ns | 443.65 ns | +11.0% |
JSON_Array_Of_Integers_Unique_256 |
4.44 us | 4.98 us | +12.2% |
JSON_Array_Of_Strings_Unique_Colliding_256 |
205.66 us | 205.81 us | +0.1% |
JSON_Parse_1 |
4.70 us | 4.81 us | +2.5% |
JSON_Parse_Real |
4.57 us | 4.66 us | +2.0% |
JSON_Parse_Real_Inexact |
4.12 us | 4.39 us | +6.7% |
JSON_Parse_Decimal |
7.63 us | 7.60 us | -0.5% |
JSON_Parse_Schema_ISO_Language |
3.48 ms | 3.50 ms | +0.5% |
JSON_Parse_KrakenD |
1.13 ms | 1.13 ms | +0.0% |
JSON_Stringify_ISO_Language |
1.94 ms | 1.97 ms | +1.3% |
JSON_Prettify_KrakenD |
1.88 ms | 1.85 ms | -1.3% |
JSON_Parse_Integer |
3.69 us | 3.73 us | +1.2% |
JSON_Parse_String_NonSSO_Plain |
3.60 us | 3.59 us | -0.2% |
JSON_Parse_String_SSO_Plain |
3.06 us | 3.05 us | -0.1% |
JSON_Parse_String_Escape_Heavy |
12.52 us | 12.77 us | +2.0% |
JSON_Parse_Object_Short_Keys |
8.13 us | 8.33 us | +2.4% |
JSON_Parse_Object_Scalar_Properties |
4.12 us | 4.24 us | +2.8% |
JSON_Parse_Object_Array_Properties |
5.50 us | 5.52 us | +0.4% |
JSON_Parse_Object_Object_Properties |
5.46 us | 5.73 us | +5.0% |
JSON_Parse_Nested_Containers |
37.03 us | 35.59 us | -3.9% |
JSON_Fast_Hash_Helm_Chart_Lock |
54.73 ns | 65.90 ns | +20.4% |
JSON_Equality_Helm_Chart_Lock |
148.51 ns | 145.09 ns | -2.3% |
JSON_String_Equal_10 |
6.26 ns | 7.16 ns | +14.3% |
JSON_String_Equal_100 |
6.54 ns | 7.47 ns | +14.3% |
JSON_String_Equal_Small_By_Perfect_Hash_10 |
1.26 ns | 1.08 ns | -14.1% |
JSON_String_Equal_Small_By_Runtime_Perfect_Hash_10 |
13.20 ns | 13.09 ns | -0.9% |
JSON_String_Fast_Hash_10 |
2.22 ns | 2.80 ns | +26.0% |
JSON_String_Fast_Hash_100 |
2.22 ns | 2.80 ns | +25.8% |
JSON_String_Key_Hash_10 |
2.75 ns | 2.81 ns | +2.4% |
JSON_String_Key_Hash_100 |
2.87 ns | 2.80 ns | -2.3% |
JSON_Object_Defines_Miss_Same_Length |
2.68 ns | 3.73 ns | +39.4% |
JSON_Object_Defines_Miss_Same_Length_32 |
18.98 ns | 18.72 ns | -1.3% |
JSON_Object_Defines_Miss_Same_Length_128 |
83.83 ns | 79.75 ns | -4.9% |
JSON_Object_Defines_Miss_Too_Small |
3.84 ns | 2.72 ns | -29.2% |
JSON_Object_Defines_Miss_Too_Large |
2.73 ns | 2.58 ns | -5.7% |
JSON_From_String_Copy |
13.29 ns | 13.57 ns | +2.1% |
JSON_From_String_Temporary |
10.71 ns | 11.38 ns | +6.2% |
JSON_Number_To_Double |
14.94 ns | 14.94 ns | -0.0% |
JSON_Object_At_Last_Key_8 |
3.65 ns | 3.43 ns | -6.0% |
JSON_Object_At_Last_Key_32 |
21.45 ns | 11.81 ns | -44.9% |
JSON_Object_At_Last_Key_128 |
47.91 ns | 48.20 ns | +0.6% |
JSON_Object_At_Last_Key_512 |
370.87 ns | 388.12 ns | +4.7% |
JSON_Object_At_Only_Key_1 |
1.24 ns | 1.24 ns | -0.0% |
JSON_Object_At_Key_3 |
1.87 ns | 2.18 ns | +16.5% |
JSON_Object_At_First_Key_8 |
1.24 ns | 1.24 ns | -0.1% |
JSON_Object_At_First_Key_32 |
1.24 ns | 1.24 ns | -0.0% |
JSON_Object_At_First_Key_128 |
1.24 ns | 1.24 ns | +0.1% |
JSON_Object_At_First_Key_512 |
1.24 ns | 1.25 ns | +0.2% |
JSON_Object_Iterate_32 |
20.82 ns | 12.30 ns | -40.9% |
JSON_Object_Iterate_128 |
50.52 ns | 49.91 ns | -1.2% |
JSON_Object_Defines_All_Present_K2_W8 |
8.45 ns | 11.28 ns | +33.5% |
JSON_Object_Defines_All_Present_K8_W32 |
90.46 ns | 69.92 ns | -22.7% |
JSON_Object_Defines_All_Present_K8_W128 |
288.97 ns | 322.06 ns | +11.4% |
JSON_Object_Defines_All_Present_K32_W128 |
1.46 us | 1.37 us | -6.4% |
JSON_Object_Try_At_Sequential_NoHint_32 |
296.66 ns | 399.42 ns | +34.6% |
JSON_Object_Try_At_Sequential_Hint_32 |
60.98 ns | 71.82 ns | +17.8% |
JSON_Object_At_Key_Sorted_Order_32 |
227.73 ns | 218.82 ns | -3.9% |
JSON_Object_Try_At_Sorted_Order_Hint_32 |
697.59 ns | 741.29 ns | +6.3% |
JSON_Divisible_By_Decimal |
279.77 ns | 289.49 ns | +3.5% |
JSON_PropertySet_Contains |
51.74 ns | 52.72 ns | +1.9% |
JSON_PropertySet_Filter_Object_Properties |
37.79 ns | 37.19 ns | -1.6% |
JSON_PropertySet_Insert |
581.65 ns | 566.43 ns | -2.6% |
JSON_Stringify_Schema_Web_Of_Things |
48.13 us | 49.16 us | +2.1% |
JSON_Prettify_Schema_Web_Of_Things |
160.44 us | 159.48 us | -0.6% |
JSON_Object_At_Perfect_Hash |
10.57 ns | 10.53 ns | -0.4% |
JSON_Object_Defines_Perfect_Hash |
10.57 ns | 10.57 ns | -0.0% |
JSON_Object_Defines_Missing_Perfect_Hash |
8.83 ns | 9.02 ns | +2.1% |
JSON_Object_At_Long_Keys |
32.36 ns | 35.93 ns | +11.0% |
Pointer_Object_Traverse |
19.41 ns | 18.97 ns | -2.2% |
Pointer_Object_Try_Traverse |
30.11 ns | 30.16 ns | +0.2% |
Pointer_Object_Traverse_Single_Property |
5.29 ns | 5.29 ns | -0.1% |
Pointer_Object_Try_Traverse_Single_Property |
6.86 ns | 7.46 ns | +8.7% |
Pointer_Push_Back_Pointer_To_Weak_Pointer |
94.81 ns | 94.72 ns | -0.1% |
Pointer_Walker_Schema_ISO_Language |
1.48 ms | 1.48 ms | +0.1% |
Pointer_Untracked_Deeply_Nested |
1.27 ms | 1.28 ms | +1.2% |
Pointer_Tracked_Deeply_Nested |
1.64 ms | 1.62 ms | -1.2% |
Pointer_Position_Tracker_Get_Deeply_Nested |
706.76 ns | 657.40 ns | -7.0% |
Schema_Tracker_ISO_Language |
4.35 ms | 4.48 ms | +2.9% |
Schema_Tracker_ISO_Language_To_JSON |
15.48 ms | 15.66 ms | +1.2% |
Schema_Frame_WoT_References |
1.66 ms | 1.65 ms | -0.6% |
Schema_Frame_OMC_References |
6.46 ms | 6.47 ms | +0.2% |
Schema_Frame_OMC_Pointers |
17.15 ms | 17.10 ms | -0.3% |
Schema_Frame_OMC_Locations |
5.20 ms | 5.19 ms | -0.1% |
Schema_Frame_ISO_Language_Locations |
12.86 ms | 13.21 ms | +2.7% |
Schema_Frame_ISO_Language_Root |
250.68 ns | 266.76 ns | +6.4% |
Schema_Frame_KrakenD_References |
8.36 ms | 8.56 ms | +2.3% |
Schema_Frame_KrakenD_Reachable |
145.34 ms | 146.73 ms | +1.0% |
Schema_Frame_ISO_Language_Locations_To_JSON |
27.92 ms | 28.16 ms | +0.9% |
Schema_Frame_Many_Resources_References |
84.60 ms | 84.62 ms | +0.0% |
Schema_Frame_Deeply_Nested_References |
8.97 ms | 8.92 ms | -0.5% |
Schema_Format_ISO_Language |
17.22 ms | 17.67 ms | +2.6% |
Schema_Bundle_Meta_2020_12 |
544.38 us | 547.72 us | +0.6% |
Schema_Bundle_Many_Remotes_With_Fragments |
5.25 ms | 5.26 ms | +0.2% |
OpenAPI_Frame_GSMTasks_3_0 |
174.00 ms | 175.25 ms | +0.7% |
OpenAPI_Format_Synthetic_3_1 |
56.44 ms | 56.54 ms | +0.2% |
OpenAPI_Bundle_Split_3_1 |
n/a | 14.25 ms | new |
JSONPath_Descendant_Filter_Nested |
1.65 us | 1.70 us | +2.9% |
URITemplateRouter_Create |
24.40 us | 23.73 us | -2.7% |
URITemplateRouter_Match |
170.67 ns | 185.79 ns | +8.9% |
URITemplateRouterView_Restore |
8.24 us | 8.20 us | -0.4% |
URITemplateRouterView_Match |
139.73 ns | 140.38 ns | +0.5% |
URITemplateRouterView_Arguments |
443.76 ns | 444.03 ns | +0.1% |
URITemplateRouter_Match_BasePath |
195.34 ns | 209.99 ns | +7.5% |
URITemplateRouterView_Match_BasePath |
159.08 ns | 161.29 ns | +1.4% |
JSONL_Parse_Large |
9.69 ms | 10.03 ms | +3.6% |
JSONL_Parse_Large_GZIP |
9.88 ms | 10.12 ms | +2.4% |
JSONLD_Catalog_Annotation_List_Populate |
593.38 us | 609.46 us | +2.7% |
JSONLD_Catalog_Materialize |
3.40 ms | 3.52 ms | +3.6% |
JSONLD_Catalog_Expand |
n/a | 10.93 ms | new |
JSONLD_Member_Expand |
n/a | 60.05 us | new |
JSONLD_Catalog_Compact |
n/a | 86.59 ms | new |
HTML_Build_Table_100000 |
37.77 ms | 37.02 ms | -2.0% |
HTML_Render_Table_100000 |
1.76 ms | 1.76 ms | -0.0% |
Markdown_To_HTML_Realistic_Document |
4.01 ms | 4.14 ms | +3.0% |
Markdown_To_HTML_Pathological |
13.37 ms | 12.79 ms | -4.3% |
Markdown_To_HTML_Short_Descriptions |
523.52 ns | 532.22 ns | +1.7% |
YAML_Parse_Records |
n/a | 1.39 ms | new |
YAML_Parse_Block_Scalars |
n/a | 487.36 us | new |
GZIP_Compress_ISO_Language_Set_3_Locations |
33.46 ms | 33.56 ms | +0.3% |
GZIP_Decompress_ISO_Language_Set_3_Locations |
5.15 ms | 5.11 ms | -0.9% |
GZIP_Decompress_Default_Level_ISO_Language_Set_3_Locations |
7.09 ms | 7.06 ms | -0.4% |
GZIP_Decompress_Stream_Default_Level_ISO_Language_Set_3_Locations |
8.56 ms | 8.53 ms | -0.3% |
GZIP_Compress_ISO_Language_Set_3_Schema |
2.07 ms | 2.07 ms | +0.0% |
GZIP_Decompress_ISO_Language_Set_3_Schema |
419.84 us | 415.83 us | -1.0% |
JOSE_VerifySignature_RS256 |
46.41 us | 47.01 us | +1.3% |
JOSE_VerifySignature_ES512 |
1.60 ms | 1.62 ms | +1.2% |
Crypto_CRC32_Large_JSONL |
105.67 us | 105.98 us | +0.3% |
Crypto_AES_GCM_Encrypt_128_1KB |
27.48 us | 27.50 us | +0.0% |
Crypto_AES_GCM_Decrypt_128_1KB |
27.43 us | 27.65 us | +0.8% |
Crypto_AES_GCM_Encrypt_256_1KB |
32.56 us | 32.56 us | +0.0% |
Metapack_Parse_OMC_JSON_V2 |
6.85 ns | 6.53 ns | -4.6% |
Metapack_Read_OMC_JSON_V2 |
388.20 us | 385.78 us | -0.6% |
Metapack_Write_OMC_JSON_V2 |
975.17 us | 960.54 us | -1.5% |
Benchmark
|
| Benchmark | main |
This branch | Change |
|---|---|---|---|
Pointer_Object_Traverse |
9.65 ns | 12.46 ns | +29.1% |
Pointer_Object_Traverse_Single_Property |
2.44 ns | 3.13 ns | +28.0% |
JSON_String_Fast_Hash_10 |
1.19 ns | 1.52 ns | +27.8% |
JSON_String_Fast_Hash_100 |
1.20 ns | 1.51 ns | +25.8% |
Regex_Caret_Period_Range_Dollar |
1.44 ns | 1.72 ns | +19.8% |
Regex_Caret_Slash_Period_Asterisk |
2.49 ns | 2.83 ns | +13.8% |
JSON_Object_Defines_Miss_Same_Length_32 |
5.65 ns | 6.31 ns | +11.8% |
JSON_Object_Try_At_Sequential_Hint_32 |
50.58 ns | 56.18 ns | +11.1% |
Schema_Frame_ISO_Language_Locations |
6.76 ms | 7.32 ms | +8.3% |
GZIP_Decompress_Stream_Default_Level_ISO_Language_Set_3_Locations |
5.45 ms | 5.89 ms | +8.1% |
URITemplateRouterView_Match_BasePath |
77.93 ns | 83.11 ns | +6.6% |
Pointer_Walker_Schema_ISO_Language |
690.89 us | 734.44 us | +6.3% |
Markdown_To_HTML_Short_Descriptions |
278.43 ns | 295.44 ns | +6.1% |
JSON_Fast_Hash_Helm_Chart_Lock |
36.58 ns | 38.59 ns | +5.5% |
Regex_Caret_Group_Period_Asterisk_Group_Dollar |
1.20 ns | 1.26 ns | +5.2% |
JSON_Object_Try_At_Sorted_Order_Hint_32 |
289.04 ns | 303.84 ns | +5.1% |
YAML_Parse_Records |
n/a | 686.68 us | new |
YAML_Parse_Block_Scalars |
n/a | 177.57 us | new |
JSONLD_Catalog_Expand |
n/a | 5.23 ms | new |
JSONLD_Member_Expand |
n/a | 28.54 us | new |
JSONLD_Catalog_Compact |
n/a | 43.62 ms | new |
OpenAPI_Bundle_Split_3_1 |
n/a | 8.43 ms | new |
Regex_Period_Asterisk |
1.27 ns | 1.20 ns | -5.6% |
Regex_Lower_S_Or_Upper_S_Asterisk |
1.27 ns | 1.20 ns | -5.8% |
Regex_Period_Plus |
1.27 ns | 1.18 ns | -6.6% |
JSON_Object_Defines_All_Present_K8_W32 |
33.16 ns | 30.93 ns | -6.7% |
JSON_Divisible_By_Decimal |
213.98 ns | 197.30 ns | -7.8% |
Regex_Caret_Period_Plus_Dollar |
1.28 ns | 1.17 ns | -8.7% |
JSON_PropertySet_Filter_Object_Properties |
20.69 ns | 16.14 ns | -22.0% |
All 150 benchmarks
| Benchmark | main |
This branch | Change |
|---|---|---|---|
Metapack_Parse_OMC_JSON_V2 |
1.24 ns | 1.24 ns | -0.2% |
Metapack_Read_OMC_JSON_V2 |
223.94 us | 231.66 us | +3.4% |
Metapack_Write_OMC_JSON_V2 |
477.09 us | 485.26 us | +1.7% |
Crypto_CRC32_Large_JSONL |
74.91 us | 77.63 us | +3.6% |
Crypto_AES_GCM_Encrypt_128_1KB |
505.63 ns | 495.16 ns | -2.1% |
Crypto_AES_GCM_Decrypt_128_1KB |
507.53 ns | 507.43 ns | -0.0% |
Crypto_AES_GCM_Encrypt_256_1KB |
528.54 ns | 513.92 ns | -2.8% |
JOSE_VerifySignature_RS256 |
13.80 us | 14.11 us | +2.2% |
JOSE_VerifySignature_ES512 |
309.87 us | 310.94 us | +0.3% |
GZIP_Compress_ISO_Language_Set_3_Locations |
18.48 ms | 18.92 ms | +2.4% |
GZIP_Decompress_ISO_Language_Set_3_Locations |
3.53 ms | 3.48 ms | -1.5% |
GZIP_Decompress_Default_Level_ISO_Language_Set_3_Locations |
4.59 ms | 4.56 ms | -0.6% |
GZIP_Decompress_Stream_Default_Level_ISO_Language_Set_3_Locations |
5.45 ms | 5.89 ms | +8.1% |
GZIP_Compress_ISO_Language_Set_3_Schema |
1.47 ms | 1.48 ms | +1.1% |
GZIP_Decompress_ISO_Language_Set_3_Schema |
292.46 us | 294.13 us | +0.6% |
YAML_Parse_Records |
n/a | 686.68 us | new |
YAML_Parse_Block_Scalars |
n/a | 177.57 us | new |
Markdown_To_HTML_Realistic_Document |
2.16 ms | 2.18 ms | +0.6% |
Markdown_To_HTML_Pathological |
7.83 ms | 7.83 ms | +0.1% |
Markdown_To_HTML_Short_Descriptions |
278.43 ns | 295.44 ns | +6.1% |
HTML_Build_Table_100000 |
20.78 ms | 21.11 ms | +1.6% |
HTML_Render_Table_100000 |
1.64 ms | 1.64 ms | +0.2% |
JSONLD_Catalog_Annotation_List_Populate |
381.58 us | 388.73 us | +1.9% |
JSONLD_Catalog_Materialize |
1.84 ms | 1.87 ms | +1.4% |
JSONLD_Catalog_Expand |
n/a | 5.23 ms | new |
JSONLD_Member_Expand |
n/a | 28.54 us | new |
JSONLD_Catalog_Compact |
n/a | 43.62 ms | new |
JSONL_Parse_Large |
5.93 ms | 6.16 ms | +3.9% |
JSONL_Parse_Large_GZIP |
6.24 ms | 6.40 ms | +2.5% |
URITemplateRouter_Create |
11.11 us | 11.06 us | -0.5% |
URITemplateRouter_Match |
77.99 ns | 80.76 ns | +3.5% |
URITemplateRouterView_Restore |
6.79 us | 6.88 us | +1.4% |
URITemplateRouterView_Match |
70.43 ns | 70.14 ns | -0.4% |
URITemplateRouterView_Arguments |
533.63 ns | 519.15 ns | -2.7% |
URITemplateRouter_Match_BasePath |
88.85 ns | 92.80 ns | +4.4% |
URITemplateRouterView_Match_BasePath |
77.93 ns | 83.11 ns | +6.6% |
JSONPath_Descendant_Filter_Nested |
998.44 ns | 1.01 us | +1.1% |
OpenAPI_Frame_GSMTasks_3_0 |
101.41 ms | 99.63 ms | -1.7% |
OpenAPI_Format_Synthetic_3_1 |
30.78 ms | 32.16 ms | +4.5% |
OpenAPI_Bundle_Split_3_1 |
n/a | 8.43 ms | new |
Schema_Frame_WoT_References |
911.14 us | 905.47 us | -0.6% |
Schema_Frame_OMC_References |
3.66 ms | 3.66 ms | +0.0% |
Schema_Frame_OMC_Pointers |
9.53 ms | 9.43 ms | -1.1% |
Schema_Frame_OMC_Locations |
2.89 ms | 2.92 ms | +1.1% |
Schema_Frame_ISO_Language_Locations |
6.76 ms | 7.32 ms | +8.3% |
Schema_Frame_ISO_Language_Root |
157.00 ns | 159.54 ns | +1.6% |
Schema_Frame_KrakenD_References |
4.61 ms | 4.75 ms | +3.1% |
Schema_Frame_KrakenD_Reachable |
70.48 ms | 72.17 ms | +2.4% |
Schema_Frame_ISO_Language_Locations_To_JSON |
20.79 ms | 20.24 ms | -2.7% |
Schema_Frame_Many_Resources_References |
46.74 ms | 47.10 ms | +0.8% |
Schema_Frame_Deeply_Nested_References |
4.43 ms | 4.41 ms | -0.3% |
Schema_Format_ISO_Language |
9.57 ms | 9.92 ms | +3.7% |
Schema_Bundle_Meta_2020_12 |
283.50 us | 289.91 us | +2.3% |
Schema_Bundle_Many_Remotes_With_Fragments |
2.84 ms | 2.92 ms | +2.8% |
Pointer_Object_Traverse |
9.65 ns | 12.46 ns | +29.1% |
Pointer_Object_Try_Traverse |
13.79 ns | 13.17 ns | -4.5% |
Pointer_Object_Traverse_Single_Property |
2.44 ns | 3.13 ns | +28.0% |
Pointer_Object_Try_Traverse_Single_Property |
3.63 ns | 3.65 ns | +0.5% |
Pointer_Push_Back_Pointer_To_Weak_Pointer |
38.27 ns | 38.41 ns | +0.4% |
Pointer_Walker_Schema_ISO_Language |
690.89 us | 734.44 us | +6.3% |
Pointer_Untracked_Deeply_Nested |
872.63 us | 911.21 us | +4.4% |
Pointer_Tracked_Deeply_Nested |
1.25 ms | 1.30 ms | +4.3% |
Pointer_Position_Tracker_Get_Deeply_Nested |
414.77 ns | 431.04 ns | +3.9% |
Schema_Tracker_ISO_Language |
3.05 ms | 3.03 ms | -0.6% |
Schema_Tracker_ISO_Language_To_JSON |
8.11 ms | 8.17 ms | +0.8% |
JSON_Array_Of_Objects_Unique |
225.80 ns | 233.53 ns | +3.4% |
JSON_Array_Of_Integers_Unique_256 |
2.12 us | 2.16 us | +2.1% |
JSON_Array_Of_Strings_Unique_Colliding_256 |
113.92 us | 111.77 us | -1.9% |
JSON_Parse_1 |
3.01 us | 3.02 us | +0.2% |
JSON_Parse_Real |
2.87 us | 2.95 us | +2.5% |
JSON_Parse_Real_Inexact |
3.41 us | 3.25 us | -4.6% |
JSON_Parse_Decimal |
5.49 us | 5.55 us | +1.0% |
JSON_Parse_Schema_ISO_Language |
2.11 ms | 2.19 ms | +3.6% |
JSON_Parse_KrakenD |
936.77 us | 962.49 us | +2.7% |
JSON_Stringify_ISO_Language |
1.05 ms | 1.04 ms | -0.4% |
JSON_Prettify_KrakenD |
1.02 ms | 1.03 ms | +0.5% |
JSON_Parse_Integer |
2.78 us | 2.77 us | -0.5% |
JSON_Parse_String_NonSSO_Plain |
2.25 us | 2.32 us | +3.5% |
JSON_Parse_String_SSO_Plain |
1.81 us | 1.85 us | +2.7% |
JSON_Parse_String_Escape_Heavy |
10.70 us | 11.02 us | +3.0% |
JSON_Parse_Object_Short_Keys |
6.27 us | 6.30 us | +0.5% |
JSON_Parse_Object_Scalar_Properties |
3.23 us | 3.18 us | -1.3% |
JSON_Parse_Object_Array_Properties |
3.54 us | 3.56 us | +0.6% |
JSON_Parse_Object_Object_Properties |
3.55 us | 3.47 us | -2.1% |
JSON_Parse_Nested_Containers |
24.17 us | 24.04 us | -0.5% |
JSON_Fast_Hash_Helm_Chart_Lock |
36.58 ns | 38.59 ns | +5.5% |
JSON_Equality_Helm_Chart_Lock |
85.79 ns | 84.96 ns | -1.0% |
JSON_String_Equal_10 |
2.67 ns | 2.69 ns | +0.5% |
JSON_String_Equal_100 |
3.35 ns | 3.41 ns | +1.7% |
JSON_String_Equal_Small_By_Perfect_Hash_10 |
0.47 ns | 0.48 ns | +1.6% |
JSON_String_Equal_Small_By_Runtime_Perfect_Hash_10 |
6.83 ns | 6.98 ns | +2.2% |
JSON_String_Fast_Hash_10 |
1.19 ns | 1.52 ns | +27.8% |
JSON_String_Fast_Hash_100 |
1.20 ns | 1.51 ns | +25.8% |
JSON_String_Key_Hash_10 |
1.22 ns | 1.21 ns | -1.4% |
JSON_String_Key_Hash_100 |
1.29 ns | 1.23 ns | -5.0% |
JSON_Object_Defines_Miss_Same_Length |
1.71 ns | 1.68 ns | -1.4% |
JSON_Object_Defines_Miss_Same_Length_32 |
5.65 ns | 6.31 ns | +11.8% |
JSON_Object_Defines_Miss_Same_Length_128 |
21.15 ns | 21.19 ns | +0.2% |
JSON_Object_Defines_Miss_Too_Small |
1.45 ns | 1.45 ns | -0.4% |
JSON_Object_Defines_Miss_Too_Large |
1.43 ns | 1.46 ns | +2.1% |
JSON_From_String_Copy |
5.65 ns | 5.69 ns | +0.8% |
JSON_From_String_Temporary |
4.99 ns | 5.03 ns | +0.7% |
JSON_Number_To_Double |
15.53 ns | 15.67 ns | +0.9% |
JSON_Object_At_Last_Key_8 |
1.80 ns | 1.85 ns | +2.7% |
JSON_Object_At_Last_Key_32 |
6.54 ns | 6.76 ns | +3.4% |
JSON_Object_At_Last_Key_128 |
29.12 ns | 29.92 ns | +2.8% |
JSON_Object_At_Last_Key_512 |
133.55 ns | 132.16 ns | -1.0% |
JSON_Object_At_Only_Key_1 |
0.65 ns | 0.64 ns | -2.3% |
JSON_Object_At_Key_3 |
1.01 ns | 0.96 ns | -5.0% |
JSON_Object_At_First_Key_8 |
0.64 ns | 0.64 ns | -0.8% |
JSON_Object_At_First_Key_32 |
0.65 ns | 0.64 ns | -1.4% |
JSON_Object_At_First_Key_128 |
0.65 ns | 0.63 ns | -2.9% |
JSON_Object_At_First_Key_512 |
0.65 ns | 0.63 ns | -1.8% |
JSON_Object_Iterate_32 |
6.73 ns | 6.65 ns | -1.2% |
JSON_Object_Iterate_128 |
42.94 ns | 42.89 ns | -0.1% |
JSON_Object_Defines_All_Present_K2_W8 |
3.13 ns | 3.17 ns | +1.2% |
JSON_Object_Defines_All_Present_K8_W32 |
33.16 ns | 30.93 ns | -6.7% |
JSON_Object_Defines_All_Present_K8_W128 |
112.31 ns | 111.05 ns | -1.1% |
JSON_Object_Defines_All_Present_K32_W128 |
544.50 ns | 523.22 ns | -3.9% |
JSON_Object_Try_At_Sequential_NoHint_32 |
132.88 ns | 136.57 ns | +2.8% |
JSON_Object_Try_At_Sequential_Hint_32 |
50.58 ns | 56.18 ns | +11.1% |
JSON_Object_At_Key_Sorted_Order_32 |
155.34 ns | 154.07 ns | -0.8% |
JSON_Object_Try_At_Sorted_Order_Hint_32 |
289.04 ns | 303.84 ns | +5.1% |
JSON_Divisible_By_Decimal |
213.98 ns | 197.30 ns | -7.8% |
JSON_PropertySet_Contains |
19.87 ns | 19.15 ns | -3.6% |
JSON_PropertySet_Filter_Object_Properties |
20.69 ns | 16.14 ns | -22.0% |
JSON_PropertySet_Insert |
234.88 ns | 228.22 ns | -2.8% |
JSON_Stringify_Schema_Web_Of_Things |
23.87 us | 22.99 us | -3.7% |
JSON_Prettify_Schema_Web_Of_Things |
82.10 us | 81.97 us | -0.2% |
JSON_Object_At_Perfect_Hash |
7.11 ns | 7.28 ns | +2.4% |
JSON_Object_Defines_Perfect_Hash |
7.10 ns | 7.32 ns | +3.1% |
JSON_Object_Defines_Missing_Perfect_Hash |
7.43 ns | 7.52 ns | +1.3% |
JSON_Object_At_Long_Keys |
22.30 ns | 22.76 ns | +2.1% |
Regex_Lower_S_Or_Upper_S_Asterisk |
1.27 ns | 1.20 ns | -5.8% |
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar |
1.21 ns | 1.25 ns | +3.2% |
Regex_Period_Asterisk |
1.27 ns | 1.20 ns | -5.6% |
Regex_Group_Period_Asterisk_Group |
1.20 ns | 1.25 ns | +4.1% |
Regex_Period_Plus |
1.27 ns | 1.18 ns | -6.6% |
Regex_Period |
1.22 ns | 1.24 ns | +2.0% |
Regex_Caret_Period_Plus_Dollar |
1.28 ns | 1.17 ns | -8.7% |
Regex_Caret_Group_Period_Plus_Group_Dollar |
1.20 ns | 1.26 ns | +4.8% |
Regex_Caret_Period_Asterisk_Dollar |
1.26 ns | 1.20 ns | -5.0% |
Regex_Caret_Group_Period_Asterisk_Group_Dollar |
1.20 ns | 1.26 ns | +5.2% |
Regex_Caret_X_Hyphen |
2.46 ns | 2.40 ns | -2.6% |
Regex_Period_Md_Dollar |
13.90 ns | 13.87 ns | -0.2% |
Regex_Caret_Slash_Period_Asterisk |
2.49 ns | 2.83 ns | +13.8% |
Regex_Caret_Period_Range_Dollar |
1.44 ns | 1.72 ns | +19.8% |
Regex_Nested_Backtrack |
21.48 ns | 21.41 ns | -0.4% |
MCP_Validate_Headers_64 |
10.25 us | 10.28 us | +0.3% |
MCP_Intersect_Disjoint_512 |
298.20 us | 306.54 us | +2.8% |
Benchmark
|
| Benchmark | main |
This branch | Change |
|---|---|---|---|
JSON_Parse_Real_Inexact |
6.55 us | 8.85 us | +35.2% |
Regex_Nested_Backtrack |
68.08 ns | 86.70 ns | +27.4% |
JSON_Object_Try_At_Sorted_Order_Hint_32 |
755.60 ns | 944.64 ns | +25.0% |
JSON_Parse_Decimal |
10.94 us | 13.00 us | +18.9% |
JSON_Object_Defines_Miss_Too_Large |
3.90 ns | 4.61 ns | +18.2% |
JSON_Object_Defines_All_Present_K2_W8 |
7.64 ns | 8.59 ns | +12.5% |
MCP_Intersect_Disjoint_512 |
831.00 us | 921.99 us | +10.9% |
Schema_Frame_Deeply_Nested_References |
19.32 ms | 20.91 ms | +8.2% |
GZIP_Compress_ISO_Language_Set_3_Locations |
40.12 ms | 43.28 ms | +7.9% |
JSON_Number_To_Double |
59.68 ns | 64.37 ns | +7.9% |
JSON_From_String_Temporary |
76.68 ns | 82.59 ns | +7.7% |
JSON_Object_At_Last_Key_8 |
7.10 ns | 7.52 ns | +6.0% |
JSON_Parse_Object_Object_Properties |
11.25 us | 11.90 us | +5.8% |
JSON_String_Fast_Hash_10 |
6.38 ns | 6.72 ns | +5.4% |
OpenAPI_Bundle_Split_3_1 |
n/a | 31.61 ms | new |
JSONLD_Catalog_Expand |
n/a | 27.88 ms | new |
JSONLD_Member_Expand |
n/a | 136.41 us | new |
JSONLD_Catalog_Compact |
n/a | 211.19 ms | new |
YAML_Parse_Records |
n/a | 2.14 ms | new |
YAML_Parse_Block_Scalars |
n/a | 588.93 us | new |
JSON_String_Equal_Small_By_Runtime_Perfect_Hash_10 |
14.29 ns | 13.49 ns | -5.6% |
JSON_Object_Iterate_128 |
92.85 ns | 85.74 ns | -7.7% |
JSON_Object_At_Key_Sorted_Order_32 |
474.52 ns | 434.69 ns | -8.4% |
JSON_PropertySet_Contains |
81.72 ns | 74.73 ns | -8.5% |
Pointer_Untracked_Deeply_Nested |
2.56 ms | 2.33 ms | -8.9% |
JSON_Fast_Hash_Helm_Chart_Lock |
130.32 ns | 116.26 ns | -10.8% |
JSON_Divisible_By_Decimal |
474.65 ns | 395.19 ns | -16.7% |
JSON_Object_At_Key_3 |
3.97 ns | 3.20 ns | -19.3% |
JSON_Object_Iterate_32 |
30.74 ns | 24.80 ns | -19.3% |
JSON_Object_Defines_Missing_Perfect_Hash |
21.81 ns | 16.64 ns | -23.7% |
JSON_Object_Try_At_Sequential_Hint_32 |
81.37 ns | 60.14 ns | -26.1% |
JSON_Object_Defines_Miss_Same_Length_32 |
35.42 ns | 24.94 ns | -29.6% |
JSON_Object_Defines_Miss_Same_Length_128 |
137.58 ns | 93.03 ns | -32.4% |
JSON_Object_Defines_All_Present_K32_W128 |
2.21 us | 1.50 us | -32.4% |
All 150 benchmarks
| Benchmark | main |
This branch | Change |
|---|---|---|---|
MCP_Validate_Headers_64 |
32.38 us | 33.55 us | +3.6% |
MCP_Intersect_Disjoint_512 |
831.00 us | 921.99 us | +10.9% |
Regex_Lower_S_Or_Upper_S_Asterisk |
4.96 ns | 4.96 ns | -0.1% |
Regex_Caret_Lower_S_Or_Upper_S_Asterisk_Dollar |
4.96 ns | 4.96 ns | -0.1% |
Regex_Period_Asterisk |
4.96 ns | 4.96 ns | +0.1% |
Regex_Group_Period_Asterisk_Group |
4.96 ns | 4.96 ns | -0.1% |
Regex_Period_Plus |
4.60 ns | 4.61 ns | +0.1% |
Regex_Period |
4.60 ns | 4.62 ns | +0.4% |
Regex_Caret_Period_Plus_Dollar |
4.60 ns | 4.60 ns | -0.0% |
Regex_Caret_Group_Period_Plus_Group_Dollar |
4.60 ns | 4.60 ns | -0.0% |
Regex_Caret_Period_Asterisk_Dollar |
4.96 ns | 4.95 ns | -0.2% |
Regex_Caret_Group_Period_Asterisk_Group_Dollar |
4.96 ns | 4.96 ns | +0.1% |
Regex_Caret_X_Hyphen |
7.99 ns | 8.03 ns | +0.4% |
Regex_Period_Md_Dollar |
65.91 ns | 68.90 ns | +4.5% |
Regex_Caret_Slash_Period_Asterisk |
7.47 ns | 7.79 ns | +4.3% |
Regex_Caret_Period_Range_Dollar |
5.32 ns | 5.31 ns | -0.1% |
Regex_Nested_Backtrack |
68.08 ns | 86.70 ns | +27.4% |
JSON_Array_Of_Objects_Unique |
617.47 ns | 620.03 ns | +0.4% |
JSON_Array_Of_Integers_Unique_256 |
7.34 us | 7.34 us | -0.1% |
JSON_Array_Of_Strings_Unique_Colliding_256 |
270.68 us | 270.86 us | +0.1% |
JSON_Parse_1 |
8.75 us | 9.15 us | +4.5% |
JSON_Parse_Real |
7.22 us | 7.24 us | +0.3% |
JSON_Parse_Real_Inexact |
6.55 us | 8.85 us | +35.2% |
JSON_Parse_Decimal |
10.94 us | 13.00 us | +18.9% |
JSON_Parse_Schema_ISO_Language |
7.95 ms | 8.03 ms | +0.9% |
JSON_Parse_KrakenD |
2.31 ms | 2.40 ms | +4.0% |
JSON_Stringify_ISO_Language |
6.54 ms | 6.58 ms | +0.5% |
JSON_Prettify_KrakenD |
7.69 ms | 7.61 ms | -0.9% |
JSON_Parse_Integer |
6.11 us | 6.17 us | +1.0% |
JSON_Parse_String_NonSSO_Plain |
8.40 us | 8.05 us | -4.1% |
JSON_Parse_String_SSO_Plain |
3.99 us | 4.05 us | +1.5% |
JSON_Parse_String_Escape_Heavy |
21.87 us | 21.72 us | -0.7% |
JSON_Parse_Object_Short_Keys |
13.42 us | 13.52 us | +0.7% |
JSON_Parse_Object_Scalar_Properties |
6.93 us | 6.94 us | +0.1% |
JSON_Parse_Object_Array_Properties |
11.35 us | 11.24 us | -1.0% |
JSON_Parse_Object_Object_Properties |
11.25 us | 11.90 us | +5.8% |
JSON_Parse_Nested_Containers |
80.41 us | 82.97 us | +3.2% |
JSON_Fast_Hash_Helm_Chart_Lock |
130.32 ns | 116.26 ns | -10.8% |
JSON_Equality_Helm_Chart_Lock |
216.54 ns | 211.95 ns | -2.1% |
JSON_String_Equal_10 |
9.90 ns | 9.92 ns | +0.3% |
JSON_String_Equal_100 |
11.35 ns | 11.36 ns | +0.1% |
JSON_String_Equal_Small_By_Perfect_Hash_10 |
2.13 ns | 2.13 ns | +0.1% |
JSON_String_Equal_Small_By_Runtime_Perfect_Hash_10 |
14.29 ns | 13.49 ns | -5.6% |
JSON_String_Fast_Hash_10 |
6.38 ns | 6.72 ns | +5.4% |
JSON_String_Fast_Hash_100 |
6.37 ns | 6.40 ns | +0.4% |
JSON_String_Key_Hash_10 |
4.60 ns | 4.61 ns | +0.1% |
JSON_String_Key_Hash_100 |
5.67 ns | 5.67 ns | +0.1% |
JSON_Object_Defines_Miss_Same_Length |
3.68 ns | 3.78 ns | +2.7% |
JSON_Object_Defines_Miss_Same_Length_32 |
35.42 ns | 24.94 ns | -29.6% |
JSON_Object_Defines_Miss_Same_Length_128 |
137.58 ns | 93.03 ns | -32.4% |
JSON_Object_Defines_Miss_Too_Small |
3.56 ns | 3.55 ns | -0.4% |
JSON_Object_Defines_Miss_Too_Large |
3.90 ns | 4.61 ns | +18.2% |
JSON_From_String_Copy |
64.53 ns | 63.26 ns | -2.0% |
JSON_From_String_Temporary |
76.68 ns | 82.59 ns | +7.7% |
JSON_Number_To_Double |
59.68 ns | 64.37 ns | +7.9% |
JSON_Object_At_Last_Key_8 |
7.10 ns | 7.52 ns | +6.0% |
JSON_Object_At_Last_Key_32 |
24.05 ns | 25.15 ns | +4.6% |
JSON_Object_At_Last_Key_128 |
92.79 ns | 92.87 ns | +0.1% |
JSON_Object_At_Last_Key_512 |
427.60 ns | 425.96 ns | -0.4% |
JSON_Object_At_Only_Key_1 |
2.49 ns | 2.48 ns | -0.2% |
JSON_Object_At_Key_3 |
3.97 ns | 3.20 ns | -19.3% |
JSON_Object_At_First_Key_8 |
2.48 ns | 2.48 ns | +0.1% |
JSON_Object_At_First_Key_32 |
2.48 ns | 2.49 ns | +0.3% |
JSON_Object_At_First_Key_128 |
2.48 ns | 2.48 ns | +0.1% |
JSON_Object_At_First_Key_512 |
2.48 ns | 2.48 ns | -0.1% |
JSON_Object_Iterate_32 |
30.74 ns | 24.80 ns | -19.3% |
JSON_Object_Iterate_128 |
92.85 ns | 85.74 ns | -7.7% |
JSON_Object_Defines_All_Present_K2_W8 |
7.64 ns | 8.59 ns | +12.5% |
JSON_Object_Defines_All_Present_K8_W32 |
95.35 ns | 96.89 ns | +1.6% |
JSON_Object_Defines_All_Present_K8_W128 |
333.55 ns | 332.90 ns | -0.2% |
JSON_Object_Defines_All_Present_K32_W128 |
2.21 us | 1.50 us | -32.4% |
JSON_Object_Try_At_Sequential_NoHint_32 |
639.23 ns | 639.73 ns | +0.1% |
JSON_Object_Try_At_Sequential_Hint_32 |
81.37 ns | 60.14 ns | -26.1% |
JSON_Object_At_Key_Sorted_Order_32 |
474.52 ns | 434.69 ns | -8.4% |
JSON_Object_Try_At_Sorted_Order_Hint_32 |
755.60 ns | 944.64 ns | +25.0% |
JSON_Divisible_By_Decimal |
474.65 ns | 395.19 ns | -16.7% |
JSON_PropertySet_Contains |
81.72 ns | 74.73 ns | -8.5% |
JSON_PropertySet_Filter_Object_Properties |
53.76 ns | 54.49 ns | +1.4% |
JSON_PropertySet_Insert |
1.33 us | 1.31 us | -1.9% |
JSON_Stringify_Schema_Web_Of_Things |
154.61 us | 154.51 us | -0.1% |
JSON_Prettify_Schema_Web_Of_Things |
717.20 us | 713.71 us | -0.5% |
JSON_Object_At_Perfect_Hash |
12.10 ns | 12.20 ns | +0.8% |
JSON_Object_Defines_Perfect_Hash |
16.27 ns | 16.61 ns | +2.1% |
JSON_Object_Defines_Missing_Perfect_Hash |
21.81 ns | 16.64 ns | -23.7% |
JSON_Object_At_Long_Keys |
45.38 ns | 44.42 ns | -2.1% |
Pointer_Object_Traverse |
46.43 ns | 46.34 ns | -0.2% |
Pointer_Object_Try_Traverse |
62.37 ns | 62.25 ns | -0.2% |
Pointer_Object_Traverse_Single_Property |
10.27 ns | 9.81 ns | -4.5% |
Pointer_Object_Try_Traverse_Single_Property |
9.58 ns | 9.93 ns | +3.7% |
Pointer_Push_Back_Pointer_To_Weak_Pointer |
138.77 ns | 140.43 ns | +1.2% |
Pointer_Walker_Schema_ISO_Language |
8.93 ms | 8.91 ms | -0.2% |
Pointer_Untracked_Deeply_Nested |
2.56 ms | 2.33 ms | -8.9% |
Pointer_Tracked_Deeply_Nested |
3.47 ms | 3.49 ms | +0.6% |
Pointer_Position_Tracker_Get_Deeply_Nested |
607.96 ns | 637.37 ns | +4.8% |
Schema_Tracker_ISO_Language |
10.75 ms | 10.91 ms | +1.6% |
Schema_Tracker_ISO_Language_To_JSON |
67.84 ms | 67.75 ms | -0.1% |
Schema_Frame_WoT_References |
4.03 ms | 4.21 ms | +4.2% |
Schema_Frame_OMC_References |
15.75 ms | 15.82 ms | +0.4% |
Schema_Frame_OMC_Pointers |
43.05 ms | 42.55 ms | -1.2% |
Schema_Frame_OMC_Locations |
12.82 ms | 12.70 ms | -0.9% |
Schema_Frame_ISO_Language_Locations |
38.09 ms | 37.68 ms | -1.1% |
Schema_Frame_ISO_Language_Root |
2.49 us | 2.44 us | -1.9% |
Schema_Frame_KrakenD_References |
23.71 ms | 24.09 ms | +1.6% |
Schema_Frame_KrakenD_Reachable |
238.04 ms | 236.39 ms | -0.7% |
Schema_Frame_ISO_Language_Locations_To_JSON |
179.10 ms | 177.59 ms | -0.8% |
Schema_Frame_Many_Resources_References |
295.87 ms | 300.54 ms | +1.6% |
Schema_Frame_Deeply_Nested_References |
19.32 ms | 20.91 ms | +8.2% |
Schema_Format_ISO_Language |
43.66 ms | 43.97 ms | +0.7% |
Schema_Bundle_Meta_2020_12 |
1.25 ms | 1.24 ms | -0.9% |
Schema_Bundle_Many_Remotes_With_Fragments |
17.16 ms | 16.99 ms | -1.0% |
OpenAPI_Frame_GSMTasks_3_0 |
433.01 ms | 430.66 ms | -0.5% |
OpenAPI_Format_Synthetic_3_1 |
140.69 ms | 137.90 ms | -2.0% |
OpenAPI_Bundle_Split_3_1 |
n/a | 31.61 ms | new |
JSONPath_Descendant_Filter_Nested |
3.44 us | 3.38 us | -1.6% |
URITemplateRouter_Create |
36.28 us | 37.04 us | +2.1% |
URITemplateRouter_Match |
223.81 ns | 219.81 ns | -1.8% |
URITemplateRouterView_Restore |
26.05 us | 26.45 us | +1.5% |
URITemplateRouterView_Match |
199.51 ns | 199.85 ns | +0.2% |
URITemplateRouterView_Arguments |
597.85 ns | 592.89 ns | -0.8% |
URITemplateRouter_Match_BasePath |
248.41 ns | 244.50 ns | -1.6% |
URITemplateRouterView_Match_BasePath |
228.57 ns | 233.56 ns | +2.2% |
JSONL_Parse_Large |
33.28 ms | 33.37 ms | +0.3% |
JSONL_Parse_Large_GZIP |
31.90 ms | 31.81 ms | -0.3% |
JSONLD_Catalog_Annotation_List_Populate |
3.04 ms | 3.02 ms | -0.5% |
JSONLD_Catalog_Materialize |
8.34 ms | 8.39 ms | +0.6% |
JSONLD_Catalog_Expand |
n/a | 27.88 ms | new |
JSONLD_Member_Expand |
n/a | 136.41 us | new |
JSONLD_Catalog_Compact |
n/a | 211.19 ms | new |
HTML_Build_Table_100000 |
90.60 ms | 93.02 ms | +2.7% |
HTML_Render_Table_100000 |
21.02 ms | 21.04 ms | +0.1% |
Markdown_To_HTML_Realistic_Document |
5.84 ms | 5.77 ms | -1.1% |
Markdown_To_HTML_Pathological |
18.07 ms | 17.33 ms | -4.1% |
Markdown_To_HTML_Short_Descriptions |
738.43 ns | 749.68 ns | +1.5% |
YAML_Parse_Records |
n/a | 2.14 ms | new |
YAML_Parse_Block_Scalars |
n/a | 588.93 us | new |
GZIP_Compress_ISO_Language_Set_3_Locations |
40.12 ms | 43.28 ms | +7.9% |
GZIP_Decompress_ISO_Language_Set_3_Locations |
10.26 ms | 10.26 ms | +0.0% |
GZIP_Decompress_Default_Level_ISO_Language_Set_3_Locations |
12.81 ms | 12.71 ms | -0.7% |
GZIP_Decompress_Stream_Default_Level_ISO_Language_Set_3_Locations |
15.54 ms | 15.49 ms | -0.3% |
GZIP_Compress_ISO_Language_Set_3_Schema |
2.64 ms | 2.65 ms | +0.5% |
GZIP_Decompress_ISO_Language_Set_3_Schema |
562.47 us | 587.04 us | +4.4% |
JOSE_VerifySignature_RS256 |
23.95 us | 23.84 us | -0.4% |
JOSE_VerifySignature_ES512 |
1.52 ms | 1.53 ms | +0.4% |
Crypto_CRC32_Large_JSONL |
116.25 us | 116.08 us | -0.1% |
Crypto_AES_GCM_Encrypt_128_1KB |
2.43 us | 2.44 us | +0.7% |
Crypto_AES_GCM_Decrypt_128_1KB |
2.40 us | 2.41 us | +0.4% |
Crypto_AES_GCM_Encrypt_256_1KB |
2.52 us | 2.58 us | +2.4% |
Metapack_Parse_OMC_JSON_V2 |
11.67 ns | 12.06 ns | +3.3% |
Metapack_Read_OMC_JSON_V2 |
659.28 us | 681.06 us | +3.3% |
Metapack_Write_OMC_JSON_V2 |
1.80 ms | 1.84 ms | +2.4% |
Signed-off-by: Juan Cruz Viotti jv@jviotti.com