From 7f7ae028d8c785e91667ccd89fd76fcbb611fb70 Mon Sep 17 00:00:00 2001 From: github-action-benchmark Date: Thu, 14 Dec 2023 23:26:50 +0000 Subject: [PATCH] add pyo3-bench (cargo) benchmark result for 97cf9b834c21810b966e87c70b1745c33a2ba1ba --- dev/bench/data.js | 410 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 409 insertions(+), 1 deletion(-) diff --git a/dev/bench/data.js b/dev/bench/data.js index 2d7bb7abe7e..d50c99cf20a 100644 --- a/dev/bench/data.js +++ b/dev/bench/data.js @@ -1,5 +1,5 @@ window.BENCHMARK_DATA = { - "lastUpdate": 1702581632956, + "lastUpdate": 1702596409674, "repoUrl": "https://github.com/PyO3/pyo3", "entries": { "pyo3-bench": [ @@ -197366,6 +197366,414 @@ window.BENCHMARK_DATA = { "unit": "ns/iter" } ] + }, + { + "commit": { + "author": { + "email": "mail@davidhewitt.dev", + "name": "David Hewitt", + "username": "davidhewitt" + }, + "committer": { + "email": "noreply@github.com", + "name": "GitHub", + "username": "web-flow" + }, + "distinct": true, + "id": "97cf9b834c21810b966e87c70b1745c33a2ba1ba", + "message": "Merge pull request #3653 from davidhewitt/native-type-source\n\nAdd `AsRefSource` to `PyNativeType`.", + "timestamp": "2023-12-14T22:33:49Z", + "tree_id": "db79c1c28ca7eb3bc38e54cef2947b505eabc2b7", + "url": "https://github.com/PyO3/pyo3/commit/97cf9b834c21810b966e87c70b1745c33a2ba1ba" + }, + "date": 1702596397411, + "tool": "cargo", + "benches": [ + { + "name": "identify_object_type", + "value": 473, + "range": "± 7", + "unit": "ns/iter" + }, + { + "name": "collect_generic_iterator", + "value": 10767661, + "range": "± 98293", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_extract_fail", + "value": 255, + "range": "± 1", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_small", + "value": 57, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_big_negative", + "value": 178, + "range": "± 7", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_big_positive", + "value": 151, + "range": "± 1", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_huge_negative", + "value": 1325, + "range": "± 5", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_huge_positive", + "value": 1085, + "range": "± 4", + "unit": "ns/iter" + }, + { + "name": "call_0", + "value": 32577, + "range": "± 684", + "unit": "ns/iter" + }, + { + "name": "call_method_0", + "value": 108932, + "range": "± 3190", + "unit": "ns/iter" + }, + { + "name": "ordered_dunder_methods", + "value": 43, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "ordered_richcmp", + "value": 44, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "decimal_via_extract", + "value": 370, + "range": "± 6", + "unit": "ns/iter" + }, + { + "name": "iter_dict", + "value": 1931322, + "range": "± 22818", + "unit": "ns/iter" + }, + { + "name": "dict_new", + "value": 4273772, + "range": "± 94075", + "unit": "ns/iter" + }, + { + "name": "dict_get_item", + "value": 2493528, + "range": "± 29058", + "unit": "ns/iter" + }, + { + "name": "extract_hashmap", + "value": 6961190, + "range": "± 539236", + "unit": "ns/iter" + }, + { + "name": "extract_btreemap", + "value": 10356190, + "range": "± 190345", + "unit": "ns/iter" + }, + { + "name": "mapping_from_dict", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "err_new_restore_and_fetch", + "value": 162, + "range": "± 6", + "unit": "ns/iter" + }, + { + "name": "err_new_without_gil", + "value": 13, + "range": "± 2", + "unit": "ns/iter" + }, + { + "name": "extract_str_extract_success", + "value": 10, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_str_extract_fail", + "value": 33, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_str_downcast_success", + "value": 3, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_str_downcast_fail", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_int_extract_success", + "value": 7, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_int_extract_fail", + "value": 241, + "range": "± 1", + "unit": "ns/iter" + }, + { + "name": "extract_int_downcast_success", + "value": 7, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_int_downcast_fail", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_float_extract_success", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_float_extract_fail", + "value": 230, + "range": "± 1", + "unit": "ns/iter" + }, + { + "name": "extract_float_downcast_success", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_float_downcast_fail", + "value": 4, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "enum_from_pyobject", + "value": 989, + "range": "± 22", + "unit": "ns/iter" + }, + { + "name": "list_via_downcast", + "value": 0, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "list_via_extract", + "value": 0, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "not_a_list_via_downcast", + "value": 0, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "not_a_list_via_extract", + "value": 21, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "not_a_list_via_extract_enum", + "value": 592, + "range": "± 19", + "unit": "ns/iter" + }, + { + "name": "f64_from_pyobject", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "clean_gilpool_new", + "value": 7, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "clean_acquire_gil", + "value": 61, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "dirty_acquire_gil", + "value": 62, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "getattr_direct", + "value": 115, + "range": "± 3", + "unit": "ns/iter" + }, + { + "name": "getattr_intern", + "value": 30, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "iter_list", + "value": 1735120, + "range": "± 37231", + "unit": "ns/iter" + }, + { + "name": "list_new", + "value": 1131512, + "range": "± 115797", + "unit": "ns/iter" + }, + { + "name": "list_get_item", + "value": 958886, + "range": "± 9109", + "unit": "ns/iter" + }, + { + "name": "list_get_item_unchecked", + "value": 863620, + "range": "± 8238", + "unit": "ns/iter" + }, + { + "name": "sequence_from_list", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "first_time_init", + "value": 3238, + "range": "± 331", + "unit": "ns/iter" + }, + { + "name": "drop_many_objects", + "value": 2169, + "range": "± 42", + "unit": "ns/iter" + }, + { + "name": "set_new", + "value": 1861828, + "range": "± 56755", + "unit": "ns/iter" + }, + { + "name": "iter_set", + "value": 1980359, + "range": "± 20124", + "unit": "ns/iter" + }, + { + "name": "extract_hashset", + "value": 7165543, + "range": "± 38125", + "unit": "ns/iter" + }, + { + "name": "extract_btreeset", + "value": 3227660, + "range": "± 11944", + "unit": "ns/iter" + }, + { + "name": "iter_tuple", + "value": 1307698, + "range": "± 10629", + "unit": "ns/iter" + }, + { + "name": "tuple_new", + "value": 1146806, + "range": "± 86161", + "unit": "ns/iter" + }, + { + "name": "tuple_get_item", + "value": 861354, + "range": "± 3643", + "unit": "ns/iter" + }, + { + "name": "tuple_get_item_unchecked", + "value": 782370, + "range": "± 2914", + "unit": "ns/iter" + }, + { + "name": "sequence_from_tuple", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "tuple_new_list", + "value": 205164, + "range": "± 8407", + "unit": "ns/iter" + }, + { + "name": "tuple_to_list", + "value": 80061, + "range": "± 1911", + "unit": "ns/iter" + }, + { + "name": "tuple_into_py", + "value": 97, + "range": "± 0", + "unit": "ns/iter" + } + ] } ], "pytest-bench": [