mirror of
https://github.com/ultrajson/ultrajson.git
synced 2024-05-25 02:46:21 +02:00
stats for fix-encode-surrogates
This commit is contained in:
parent
2f3070d74f
commit
ac5b143712
|
@ -47,7 +47,7 @@ def analyze_results(result_fpaths):
|
|||
analysis = benchmarker.result_analysis.ResultAnalysis(
|
||||
results,
|
||||
metrics=[metric_key],
|
||||
params=["impl"],
|
||||
params=["impl", "impl_version"],
|
||||
metric_objectives={
|
||||
"min_time": "min",
|
||||
"mean_time": "min",
|
||||
|
@ -57,14 +57,14 @@ def analyze_results(result_fpaths):
|
|||
analysis.analysis()
|
||||
|
||||
table = analysis.table
|
||||
stats_table = util_stats.aggregate_stats(table, suffix="_time", group_keys=["name"])
|
||||
stats_table = util_stats.aggregate_stats(table, suffix="_time", group_keys=["name", "impl_version"])
|
||||
|
||||
single_size = stats_table[
|
||||
(stats_table["size"] == 256) | stats_table["size"].isnull()
|
||||
]
|
||||
# single_size_combo = aggregate_stats(single_size, None)
|
||||
single_size_combo = util_stats.aggregate_stats(
|
||||
single_size, suffix="_time", group_keys=["name"]
|
||||
single_size, suffix="_time", group_keys=["name", "impl_version"]
|
||||
)
|
||||
|
||||
param_group = ["impl", "impl_version"]
|
||||
|
|
|
@ -4,13 +4,13 @@ Define the json libraries we are considering
|
|||
|
||||
KNOWN_LIBRARIES = [
|
||||
{"modname": "ujson", "distname": "ujson"},
|
||||
{"modname": "nujson", "distname": "nujson"},
|
||||
{"modname": "orjson", "distname": "orjson"},
|
||||
{"modname": "simplejson", "distname": "simplejson"},
|
||||
# {"modname": "nujson", "distname": "nujson"},
|
||||
# {"modname": "orjson", "distname": "orjson"},
|
||||
# {"modname": "simplejson", "distname": "simplejson"},
|
||||
{"modname": "json", "distname": "<stdlib>"},
|
||||
{"modname": "simdjson", "distname": "pysimdjson"},
|
||||
{"modname": "cysimdjson", "distname": "cysimdjson"},
|
||||
{"modname": "libpy_simdjson", "distname": "libpy-simdjson"},
|
||||
# {"modname": "simdjson", "distname": "pysimdjson"},
|
||||
# {"modname": "cysimdjson", "distname": "cysimdjson"},
|
||||
# {"modname": "libpy_simdjson", "distname": "libpy-simdjson"},
|
||||
]
|
||||
|
||||
KNOWN_MODNAMES = [info["modname"] for info in KNOWN_LIBRARIES]
|
||||
|
|
Loading…
Reference in New Issue