ssrjson-benchmark 0.0.1rc1__cp312-cp312-win_amd64.whl → 0.0.2__cp312-cp312-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ssrjson-benchmark might be problematic. Click here for more details.
- ssrjson_benchmark/__init__.py +3 -1
- ssrjson_benchmark/_ssrjson_benchmark.pyd +0 -0
- ssrjson_benchmark/benchmark_main.py +18 -2
- {ssrjson_benchmark-0.0.1rc1.dist-info → ssrjson_benchmark-0.0.2.dist-info}/METADATA +33 -2
- {ssrjson_benchmark-0.0.1rc1.dist-info → ssrjson_benchmark-0.0.2.dist-info}/RECORD +8 -8
- {ssrjson_benchmark-0.0.1rc1.dist-info → ssrjson_benchmark-0.0.2.dist-info}/WHEEL +0 -0
- {ssrjson_benchmark-0.0.1rc1.dist-info → ssrjson_benchmark-0.0.2.dist-info}/licenses/LICENSE +0 -0
- {ssrjson_benchmark-0.0.1rc1.dist-info → ssrjson_benchmark-0.0.2.dist-info}/top_level.txt +0 -0
ssrjson_benchmark/__init__.py
CHANGED
|
Binary file
|
|
@@ -230,9 +230,10 @@ def _run_benchmark(
|
|
|
230
230
|
if isinstance(input_data, bytes)
|
|
231
231
|
else _ssrjson_benchmark.inspect_pyunicode(input_data)[1]
|
|
232
232
|
)
|
|
233
|
-
cur_obj["ssrjson_bytes_per_sec"] =
|
|
233
|
+
cur_obj["ssrjson_bytes_per_sec"] = (
|
|
234
234
|
size * repeat_times / (cur_obj[name]["speed"] / _NS_IN_ONE_S)
|
|
235
235
|
)
|
|
236
|
+
|
|
236
237
|
for index in INDEXES:
|
|
237
238
|
basename = name.split(".")[0]
|
|
238
239
|
if baseline_data[index] == 0:
|
|
@@ -263,7 +264,9 @@ def run_file_benchmark(
|
|
|
263
264
|
|
|
264
265
|
|
|
265
266
|
def get_head_rev_name():
|
|
266
|
-
return
|
|
267
|
+
return (
|
|
268
|
+
getattr(ssrjson, "__version__", None) or getattr(ssrjson, "ssrjson").__version__
|
|
269
|
+
)
|
|
267
270
|
|
|
268
271
|
|
|
269
272
|
def get_real_output_file_name():
|
|
@@ -354,6 +357,7 @@ def plot_relative_ops(data: dict, doc_name: str, index_s: str) -> io.BytesIO:
|
|
|
354
357
|
|
|
355
358
|
for ax, cat in zip(axs, CATEGORIES):
|
|
356
359
|
vals = [1.0] + [data[cat][f"{name}_{index_s}_ratio"] for name in libs[1:]]
|
|
360
|
+
gbps = (data[cat]["ssrjson_bytes_per_sec"]) / (1024**3)
|
|
357
361
|
|
|
358
362
|
for xi, val, col in zip(x_positions, vals, colors):
|
|
359
363
|
ax.bar(xi, val, width=bar_width, color=col)
|
|
@@ -367,6 +371,18 @@ def plot_relative_ops(data: dict, doc_name: str, index_s: str) -> io.BytesIO:
|
|
|
367
371
|
color=get_ratio_color(val),
|
|
368
372
|
)
|
|
369
373
|
|
|
374
|
+
ssrjson_index = libs.index("ssrjson")
|
|
375
|
+
ax.text(
|
|
376
|
+
x_positions[ssrjson_index],
|
|
377
|
+
vals[ssrjson_index] / 2,
|
|
378
|
+
f"{gbps:.2f} GB/s",
|
|
379
|
+
ha="center",
|
|
380
|
+
va="center",
|
|
381
|
+
fontsize=10,
|
|
382
|
+
color="#2c3e50",
|
|
383
|
+
fontweight="bold",
|
|
384
|
+
)
|
|
385
|
+
|
|
370
386
|
# baseline line
|
|
371
387
|
ax.axhline(1.0, color="gray", linestyle="--", linewidth=1)
|
|
372
388
|
# height = 1.1 * max bar height
|
|
@@ -1,11 +1,34 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ssrjson-benchmark
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2
|
|
4
4
|
Summary: benchmark of ssrJSON
|
|
5
5
|
Author-email: Eritque Arcus <eritque-arcus@ikuyo.dev>, Antares <antares0982@gmail.com>
|
|
6
|
-
License
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2025 Eritque arcus
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
7
28
|
Project-URL: Homepage, https://github.com/Nambers/ssrJSON-benchmark
|
|
8
29
|
Project-URL: Issues, https://github.com/Nambers/ssrJSON-benchmark/issues
|
|
30
|
+
Project-URL: Repository, https://github.com/Nambers/ssrJSON-benchmark.git
|
|
31
|
+
Keywords: ssrjson,benchmark,json
|
|
9
32
|
Classifier: Development Status :: 5 - Production/Stable
|
|
10
33
|
Classifier: Environment :: Console
|
|
11
34
|
Classifier: Intended Audience :: Developers
|
|
@@ -15,6 +38,14 @@ Classifier: Operating System :: OS Independent
|
|
|
15
38
|
Requires-Python: >=3.9
|
|
16
39
|
Description-Content-Type: text/markdown
|
|
17
40
|
License-File: LICENSE
|
|
41
|
+
Requires-Dist: ssrjson
|
|
42
|
+
Requires-Dist: orjson
|
|
43
|
+
Requires-Dist: matplotlib
|
|
44
|
+
Provides-Extra: pdf
|
|
45
|
+
Requires-Dist: svglib; extra == "pdf"
|
|
46
|
+
Requires-Dist: reportlab; extra == "pdf"
|
|
47
|
+
Provides-Extra: cpuinfo
|
|
48
|
+
Requires-Dist: py-cpuinfo; extra == "cpuinfo"
|
|
18
49
|
Dynamic: license-file
|
|
19
50
|
|
|
20
51
|
# ssrJSON-benchmark
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
ssrjson_benchmark/__init__.py,sha256=
|
|
1
|
+
ssrjson_benchmark/__init__.py,sha256=aroqyK7Q7TXRsbBm92uxbpKePybt3edk08_00dfIgas,368
|
|
2
2
|
ssrjson_benchmark/__main__.py,sha256=3Nn6E4C6zFDArGDmiB36YOq4pX51KbJc3nKjcjBxRRs,1281
|
|
3
|
-
ssrjson_benchmark/_ssrjson_benchmark.pyd,sha256=
|
|
4
|
-
ssrjson_benchmark/benchmark_main.py,sha256=
|
|
3
|
+
ssrjson_benchmark/_ssrjson_benchmark.pyd,sha256=YesAKNFyOgsA5yeUaE7ijLHeFLSRAg2UDEJbuwvcKYU,13312
|
|
4
|
+
ssrjson_benchmark/benchmark_main.py,sha256=hjWIzQPa9gmSw7usSsgZNyVMXkK3B7p0Rkivj1YzwJ0,21507
|
|
5
5
|
ssrjson_benchmark/template.md,sha256=P0j37eQs80YQWfwstWu3LbkG5Ek9AEcB83fG7uNuqCI,241
|
|
6
6
|
ssrjson_benchmark/_files/MotionsQuestionsAnswersQuestions2016.json,sha256=EqcdpROZfEPUSuOq1PXmDY3WXQqPvNYmvqAYF_30ICQ,10323246
|
|
7
7
|
ssrjson_benchmark/_files/apache.json,sha256=KcnevFmcwUnq5rws-lXkX-Wzqwl_18v3DN9DXp4flLY,129902
|
|
@@ -15,8 +15,8 @@ ssrjson_benchmark/_files/simple_object_zh.json,sha256=uPOPBRqqFwxxu1Sh0DMoe1q9o3
|
|
|
15
15
|
ssrjson_benchmark/_files/truenull.json,sha256=enl_cy6qWa8b7bdVpx3-e0k6X9BFe_aCPot1rEquGiU,12000
|
|
16
16
|
ssrjson_benchmark/_files/tweet.json,sha256=nd_aAjLwHMcvzh_4ntacdK6S1Dlz65bcsPEzS-9MEtc,5128
|
|
17
17
|
ssrjson_benchmark/_files/twitter.json,sha256=apbJI9QLVdnFuler9fbDV8AyK9Tz2AuygSujmeMKn2o,770627
|
|
18
|
-
ssrjson_benchmark-0.0.
|
|
19
|
-
ssrjson_benchmark-0.0.
|
|
20
|
-
ssrjson_benchmark-0.0.
|
|
21
|
-
ssrjson_benchmark-0.0.
|
|
22
|
-
ssrjson_benchmark-0.0.
|
|
18
|
+
ssrjson_benchmark-0.0.2.dist-info/licenses/LICENSE,sha256=grt4_GrNwicUFuNLSSbvvdGq2fFW6s81CFBO9_mtQbg,1091
|
|
19
|
+
ssrjson_benchmark-0.0.2.dist-info/METADATA,sha256=RsWHrOFxy9HS69cPJ49CfTUCiipcmYcwmXpXXwRU_60,5738
|
|
20
|
+
ssrjson_benchmark-0.0.2.dist-info/WHEEL,sha256=8UP9x9puWI0P1V_d7K2oMTBqfeLNm21CTzZ_Ptr0NXU,101
|
|
21
|
+
ssrjson_benchmark-0.0.2.dist-info/top_level.txt,sha256=l1O9IjI1lR5DczhKv9O-GeItgq5HZySDOI5KjfFfvq8,37
|
|
22
|
+
ssrjson_benchmark-0.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|