Commit ba14a17b authored by Stefan Scherfke's avatar Stefan Scherfke
Browse files

Fix issue in the "dump" benchmark

parent 07d772ed
{"title": "Dumping nested classes", "data": [["Attr", 14.819370643000001, 141.48828125], ["Cattr", 5.908646887, 580.08984375], ["Pydantic", 31.140754903000005, 126.86328125]]}
\ No newline at end of file
{"title": "Dumping nested classes", "data": [["Attr", 16.021923801, 141.48828125], ["Cattr", 10.097307512, 126.61328125], ["Pydantic", 33.083023428000004, 126.3828125]]}
\ No newline at end of file
......@@ -79,7 +79,7 @@ def cattr1():
return converter.structure(DATA, Parent)
def run(inst):
return converter.unstructure(inst)
return json.dumps(converter.unstructure(inst))
return prepare, run
......
......@@ -27,23 +27,23 @@ z
" style="fill:#ffffff;"/>
</g>
<g id="patch_3">
<path clip-path="url(#p6f5dec8d20)" d="M 60.91 40.717273
L 237.254287 40.717273
L 237.254287 76.591684
<path clip-path="url(#p39bf6a069a)" d="M 60.91 40.717273
L 240.371065 40.717273
L 240.371065 76.591684
L 60.91 76.591684
z
" style="fill:#1f77b4;"/>
</g>
<g id="patch_4">
<path clip-path="url(#p6f5dec8d20)" d="M 60.91 143.215589
L 131.220416 143.215589
L 131.220416 179.09
<path clip-path="url(#p39bf6a069a)" d="M 60.91 143.215589
L 174.009624 143.215589
L 174.009624 179.09
L 60.91 179.09
z
" style="fill:#1f77b4;"/>
</g>
<g id="patch_5">
<path clip-path="url(#p6f5dec8d20)" d="M 60.91 245.713906
<path clip-path="url(#p39bf6a069a)" d="M 60.91 245.713906
L 431.471905 245.713906
L 431.471905 281.588316
L 60.91 281.588316
......@@ -51,25 +51,25 @@ z
" style="fill:#1f77b4;"/>
</g>
<g id="patch_6">
<path clip-path="url(#p6f5dec8d20)" d="M 60.91 76.591684
L 151.292839 76.591684
L 151.292839 112.466094
<path clip-path="url(#p39bf6a069a)" d="M 60.91 76.591684
L 431.471905 76.591684
L 431.471905 112.466094
L 60.91 112.466094
z
" style="fill:#ff7f0e;"/>
</g>
<g id="patch_7">
<path clip-path="url(#p6f5dec8d20)" d="M 60.91 179.09
L 431.471905 179.09
L 431.471905 214.964411
<path clip-path="url(#p39bf6a069a)" d="M 60.91 179.09
L 392.513849 179.09
L 392.513849 214.964411
L 60.91 214.964411
z
" style="fill:#ff7f0e;"/>
</g>
<g id="patch_8">
<path clip-path="url(#p6f5dec8d20)" d="M 60.91 281.588316
L 141.950376 281.588316
L 141.950376 317.462727
<path clip-path="url(#p39bf6a069a)" d="M 60.91 281.588316
L 391.910245 281.588316
L 391.910245 317.462727
L 60.91 317.462727
z
" style="fill:#ff7f0e;"/>
......@@ -81,10 +81,10 @@ z
<defs>
<path d="M 0 0
L -3.5 0
" id="m72475354b7" style="stroke:#000000;stroke-width:0.8;"/>
" id="m5cffc1063c" style="stroke:#000000;stroke-width:0.8;"/>
</defs>
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="60.91" xlink:href="#m72475354b7" y="76.591684"/>
<use style="stroke:#000000;stroke-width:0.8;" x="60.91" xlink:href="#m5cffc1063c" y="76.591684"/>
</g>
</g>
<g id="text_1">
......@@ -152,7 +152,7 @@ z
<g id="ytick_2">
<g id="line2d_2">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="60.91" xlink:href="#m72475354b7" y="179.09"/>
<use style="stroke:#000000;stroke-width:0.8;" x="60.91" xlink:href="#m5cffc1063c" y="179.09"/>
</g>
</g>
<g id="text_2">
......@@ -224,7 +224,7 @@ z
<g id="ytick_3">
<g id="line2d_3">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="60.91" xlink:href="#m72475354b7" y="281.588316"/>
<use style="stroke:#000000;stroke-width:0.8;" x="60.91" xlink:href="#m5cffc1063c" y="281.588316"/>
</g>
</g>
<g id="text_3">
......@@ -692,7 +692,7 @@ z
</g>
</g>
<defs>
<clipPath id="p6f5dec8d20">
<clipPath id="p39bf6a069a">
<rect height="304.42" width="389.09" x="60.91" y="26.88"/>
</clipPath>
</defs>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment