ssrjson-benchmark 0.0.1rc1__cp310-cp310-win_amd64.whl → 0.0.1rc2__cp310-cp310-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.1rc2.dist-info}/METADATA +11 -1
- {ssrjson_benchmark-0.0.1rc1.dist-info → ssrjson_benchmark-0.0.1rc2.dist-info}/RECORD +8 -8
- {ssrjson_benchmark-0.0.1rc1.dist-info → ssrjson_benchmark-0.0.1rc2.dist-info}/WHEEL +0 -0
- {ssrjson_benchmark-0.0.1rc1.dist-info → ssrjson_benchmark-0.0.1rc2.dist-info}/licenses/LICENSE +0 -0
- {ssrjson_benchmark-0.0.1rc1.dist-info → ssrjson_benchmark-0.0.1rc2.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"] * 8) / (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,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ssrjson-benchmark
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.1rc2
|
|
4
4
|
Summary: benchmark of ssrJSON
|
|
5
5
|
Author-email: Eritque Arcus <eritque-arcus@ikuyo.dev>, Antares <antares0982@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/Nambers/ssrJSON-benchmark
|
|
8
8
|
Project-URL: Issues, https://github.com/Nambers/ssrJSON-benchmark/issues
|
|
9
|
+
Project-URL: Repository, https://github.com/Nambers/ssrJSON-benchmark.git
|
|
10
|
+
Keywords: ssrjson,benchmark,json
|
|
9
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
10
12
|
Classifier: Environment :: Console
|
|
11
13
|
Classifier: Intended Audience :: Developers
|
|
@@ -15,6 +17,14 @@ Classifier: Operating System :: OS Independent
|
|
|
15
17
|
Requires-Python: >=3.9
|
|
16
18
|
Description-Content-Type: text/markdown
|
|
17
19
|
License-File: LICENSE
|
|
20
|
+
Requires-Dist: ssrjson
|
|
21
|
+
Requires-Dist: orjson
|
|
22
|
+
Requires-Dist: matplotlib
|
|
23
|
+
Provides-Extra: pdf
|
|
24
|
+
Requires-Dist: svglib; extra == "pdf"
|
|
25
|
+
Requires-Dist: reportlab; extra == "pdf"
|
|
26
|
+
Provides-Extra: cpuinfo
|
|
27
|
+
Requires-Dist: py-cpuinfo; extra == "cpuinfo"
|
|
18
28
|
Dynamic: license-file
|
|
19
29
|
|
|
20
30
|
# 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=D_2IRXA8Q2KPu3yorShV4ZMYN6CQD8xy98_-7DF1EkI,13312
|
|
4
|
+
ssrjson_benchmark/benchmark_main.py,sha256=AnmSSRGeqCpByMAzHLcdi_QzJ6Zg8dR89B_PcD9rcaI,21511
|
|
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.1rc2.dist-info/licenses/LICENSE,sha256=grt4_GrNwicUFuNLSSbvvdGq2fFW6s81CFBO9_mtQbg,1091
|
|
19
|
+
ssrjson_benchmark-0.0.1rc2.dist-info/METADATA,sha256=P2nVrZT8NHwz2Vkvn085FhdlZn-KcPRVMxlpZQANN70,4496
|
|
20
|
+
ssrjson_benchmark-0.0.1rc2.dist-info/WHEEL,sha256=KUuBC6lxAbHCKilKua8R9W_TM71_-9Sg5uEP3uDWcoU,101
|
|
21
|
+
ssrjson_benchmark-0.0.1rc2.dist-info/top_level.txt,sha256=l1O9IjI1lR5DczhKv9O-GeItgq5HZySDOI5KjfFfvq8,37
|
|
22
|
+
ssrjson_benchmark-0.0.1rc2.dist-info/RECORD,,
|
|
File without changes
|
{ssrjson_benchmark-0.0.1rc1.dist-info → ssrjson_benchmark-0.0.1rc2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|