ssrjson-benchmark 0.0.5__cp313-cp313-win_amd64.whl → 0.0.6__cp313-cp313-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.

Binary file
@@ -280,13 +280,6 @@ def _get_processed_size(func: Callable, input_data, is_dumps):
280
280
  return size
281
281
 
282
282
 
283
- def benchmark_multiprocess_wrapper(
284
- benchmarker, args, result_multiprocess_queue: multiprocessing.Queue
285
- ):
286
- ret = benchmarker(*args)
287
- result_multiprocess_queue.put(ret)
288
-
289
-
290
283
  def _run_benchmark(
291
284
  cur_result_file: BenchmarkResultPerFile,
292
285
  repeat_times: int,
@@ -299,8 +292,6 @@ def _run_benchmark(
299
292
 
300
293
  input_data = benchmark_group.input_preprocessor(input_data)
301
294
 
302
- result_multiprocess_queue = multiprocessing.Queue() # type: ignore
303
-
304
295
  for benchmark_target in benchmark_group.functions:
305
296
  prefix = f"[{benchmark_target.library_name}][{benchmark_group.group_name}]"
306
297
  print(
@@ -308,17 +299,9 @@ def _run_benchmark(
308
299
  + (" " * max(0, 40 - len(prefix)))
309
300
  + f"repeat_times={repeat_times} times_per_bin={times_per_bin}"
310
301
  )
311
- p = multiprocessing.Process(
312
- target=benchmark_multiprocess_wrapper,
313
- args=(
314
- benchmark_group.benchmarker,
315
- (repeat_times, times_per_bin, benchmark_target.func, input_data),
316
- result_multiprocess_queue,
317
- ),
302
+ speed = benchmark_group.benchmarker(
303
+ repeat_times, times_per_bin, benchmark_target.func, input_data
318
304
  )
319
- p.start()
320
- p.join()
321
- speed = result_multiprocess_queue.get()
322
305
  cur_lib = cur_target[benchmark_target.library_name]
323
306
  cur_lib.speed = speed
324
307
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ssrjson-benchmark
3
- Version: 0.0.5
3
+ Version: 0.0.6
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
@@ -1,7 +1,7 @@
1
1
  ssrjson_benchmark/__init__.py,sha256=i4lVJ3CRKTxfxGyXREUi5OUesvmwWm8fEkcME7usGpk,380
2
2
  ssrjson_benchmark/__main__.py,sha256=kCW5S5avgZcb2W4I4Mlb0ytXCF9epg4P441JEJywxac,2901
3
- ssrjson_benchmark/_ssrjson_benchmark.pyd,sha256=K0oNy-yrwQAiObORKpoBP-0NkdpglDAJIkQZaa3mEq4,13312
4
- ssrjson_benchmark/benchmark_impl.py,sha256=rsrRX5FP6XFvcXybrL9rAjDLlgAkzSRpvOlivRJAs_4,25953
3
+ ssrjson_benchmark/_ssrjson_benchmark.pyd,sha256=r-PMDXkMZ7Cb-zlC6RVxIMccm8ohIEd7JSCg-9K14O8,13312
4
+ ssrjson_benchmark/benchmark_impl.py,sha256=YgXaMpYkpApPvthuDQ8TGJoKDruSH46Lf6L_1QLWovU,25427
5
5
  ssrjson_benchmark/result_types.py,sha256=_rrM4Lz4-8fJhtHQ9tOF2tr6dRc-FU4CmabodUO_hk8,2379
6
6
  ssrjson_benchmark/template.md,sha256=ZRM36XR-EB2Up0BkRiE1IL7GmlaozwNQ-S1TFw_hnwM,272
7
7
  ssrjson_benchmark/_files/MotionsQuestionsAnswersQuestions2016.json,sha256=EqcdpROZfEPUSuOq1PXmDY3WXQqPvNYmvqAYF_30ICQ,10323246
@@ -16,8 +16,8 @@ ssrjson_benchmark/_files/simple_object_zh.json,sha256=uPOPBRqqFwxxu1Sh0DMoe1q9o3
16
16
  ssrjson_benchmark/_files/truenull.json,sha256=enl_cy6qWa8b7bdVpx3-e0k6X9BFe_aCPot1rEquGiU,12000
17
17
  ssrjson_benchmark/_files/tweet.json,sha256=nd_aAjLwHMcvzh_4ntacdK6S1Dlz65bcsPEzS-9MEtc,5128
18
18
  ssrjson_benchmark/_files/twitter.json,sha256=apbJI9QLVdnFuler9fbDV8AyK9Tz2AuygSujmeMKn2o,770627
19
- ssrjson_benchmark-0.0.5.dist-info/licenses/LICENSE,sha256=grt4_GrNwicUFuNLSSbvvdGq2fFW6s81CFBO9_mtQbg,1091
20
- ssrjson_benchmark-0.0.5.dist-info/METADATA,sha256=c5fakyL6f7a7QLTAl6R9KuPi5JVZac7Xcai-l8f2ET0,4641
21
- ssrjson_benchmark-0.0.5.dist-info/WHEEL,sha256=qV0EIPljj1XC_vuSatRWjn02nZIz3N1t8jsZz7HBr2U,101
22
- ssrjson_benchmark-0.0.5.dist-info/top_level.txt,sha256=l1O9IjI1lR5DczhKv9O-GeItgq5HZySDOI5KjfFfvq8,37
23
- ssrjson_benchmark-0.0.5.dist-info/RECORD,,
19
+ ssrjson_benchmark-0.0.6.dist-info/licenses/LICENSE,sha256=grt4_GrNwicUFuNLSSbvvdGq2fFW6s81CFBO9_mtQbg,1091
20
+ ssrjson_benchmark-0.0.6.dist-info/METADATA,sha256=U20IW7AekyqgYTHaNIgFN9jgq6m7nm6KxLZCiIdwKHI,4641
21
+ ssrjson_benchmark-0.0.6.dist-info/WHEEL,sha256=qV0EIPljj1XC_vuSatRWjn02nZIz3N1t8jsZz7HBr2U,101
22
+ ssrjson_benchmark-0.0.6.dist-info/top_level.txt,sha256=l1O9IjI1lR5DczhKv9O-GeItgq5HZySDOI5KjfFfvq8,37
23
+ ssrjson_benchmark-0.0.6.dist-info/RECORD,,