From 6100071ab3b80af9e021fbbaba2abbe261f847a8 Mon Sep 17 00:00:00 2001 From: github-action-benchmark Date: Tue, 19 Dec 2023 20:46:02 +0000 Subject: [PATCH] add pyo3-bench (cargo) benchmark result for 8bb64377b819fbf10460246af6e70fad60e44b0c --- 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 6d4560c0bde..2c93389b7f6 100644 --- a/dev/bench/data.js +++ b/dev/bench/data.js @@ -1,5 +1,5 @@ window.BENCHMARK_DATA = { - "lastUpdate": 1703013411385, + "lastUpdate": 1703018761663, "repoUrl": "https://github.com/PyO3/pyo3", "entries": { "pyo3-bench": [ @@ -201038,6 +201038,414 @@ window.BENCHMARK_DATA = { "unit": "ns/iter" } ] + }, + { + "commit": { + "author": { + "email": "adamreichold@users.noreply.github.com", + "name": "Adam Reichold", + "username": "adamreichold" + }, + "committer": { + "email": "noreply@github.com", + "name": "GitHub", + "username": "web-flow" + }, + "distinct": false, + "id": "8bb64377b819fbf10460246af6e70fad60e44b0c", + "message": "Merge pull request #3638 from PyO3/call-op-bool\n\nTry harder by looking for a __bool__ magic method when extracing bool values from Python objects.", + "timestamp": "2023-12-19T18:52:55Z", + "tree_id": "dbd3a5535c72c92b7660cd23791446014e6695f3", + "url": "https://github.com/PyO3/pyo3/commit/8bb64377b819fbf10460246af6e70fad60e44b0c" + }, + "date": 1703018748095, + "tool": "cargo", + "benches": [ + { + "name": "identify_object_type", + "value": 467, + "range": "± 36", + "unit": "ns/iter" + }, + { + "name": "collect_generic_iterator", + "value": 11065344, + "range": "± 78152", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_extract_fail", + "value": 247, + "range": "± 1", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_small", + "value": 60, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_big_negative", + "value": 182, + "range": "± 1", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_big_positive", + "value": 145, + "range": "± 1", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_huge_negative", + "value": 1282, + "range": "± 18", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_huge_positive", + "value": 1044, + "range": "± 10", + "unit": "ns/iter" + }, + { + "name": "call_0", + "value": 32741, + "range": "± 731", + "unit": "ns/iter" + }, + { + "name": "call_method_0", + "value": 107121, + "range": "± 3774", + "unit": "ns/iter" + }, + { + "name": "ordered_dunder_methods", + "value": 45, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "ordered_richcmp", + "value": 45, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "decimal_via_extract", + "value": 378, + "range": "± 5", + "unit": "ns/iter" + }, + { + "name": "iter_dict", + "value": 2045163, + "range": "± 43082", + "unit": "ns/iter" + }, + { + "name": "dict_new", + "value": 4256196, + "range": "± 98444", + "unit": "ns/iter" + }, + { + "name": "dict_get_item", + "value": 2536124, + "range": "± 30508", + "unit": "ns/iter" + }, + { + "name": "extract_hashmap", + "value": 7132814, + "range": "± 338470", + "unit": "ns/iter" + }, + { + "name": "extract_btreemap", + "value": 11020767, + "range": "± 583112", + "unit": "ns/iter" + }, + { + "name": "mapping_from_dict", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "err_new_restore_and_fetch", + "value": 166, + "range": "± 6", + "unit": "ns/iter" + }, + { + "name": "err_new_without_gil", + "value": 13, + "range": "± 4", + "unit": "ns/iter" + }, + { + "name": "extract_str_extract_success", + "value": 10, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_str_extract_fail", + "value": 34, + "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": 253, + "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": 233, + "range": "± 1", + "unit": "ns/iter" + }, + { + "name": "extract_float_downcast_success", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_float_downcast_fail", + "value": 3, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "enum_from_pyobject", + "value": 993, + "range": "± 31", + "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": 575, + "range": "± 18", + "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": 63, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "dirty_acquire_gil", + "value": 63, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "getattr_direct", + "value": 108, + "range": "± 3", + "unit": "ns/iter" + }, + { + "name": "getattr_intern", + "value": 30, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "iter_list", + "value": 1777537, + "range": "± 16075", + "unit": "ns/iter" + }, + { + "name": "list_new", + "value": 1147111, + "range": "± 112227", + "unit": "ns/iter" + }, + { + "name": "list_get_item", + "value": 971162, + "range": "± 7769", + "unit": "ns/iter" + }, + { + "name": "list_get_item_unchecked", + "value": 863055, + "range": "± 9279", + "unit": "ns/iter" + }, + { + "name": "sequence_from_list", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "first_time_init", + "value": 3242, + "range": "± 194", + "unit": "ns/iter" + }, + { + "name": "drop_many_objects", + "value": 2169, + "range": "± 3", + "unit": "ns/iter" + }, + { + "name": "set_new", + "value": 1852872, + "range": "± 51802", + "unit": "ns/iter" + }, + { + "name": "iter_set", + "value": 1958672, + "range": "± 17132", + "unit": "ns/iter" + }, + { + "name": "extract_hashset", + "value": 7810638, + "range": "± 274862", + "unit": "ns/iter" + }, + { + "name": "extract_btreeset", + "value": 3223283, + "range": "± 19386", + "unit": "ns/iter" + }, + { + "name": "iter_tuple", + "value": 2355666, + "range": "± 4983", + "unit": "ns/iter" + }, + { + "name": "tuple_new", + "value": 1145465, + "range": "± 91133", + "unit": "ns/iter" + }, + { + "name": "tuple_get_item", + "value": 858010, + "range": "± 30128", + "unit": "ns/iter" + }, + { + "name": "tuple_get_item_unchecked", + "value": 781514, + "range": "± 4048", + "unit": "ns/iter" + }, + { + "name": "sequence_from_tuple", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "tuple_new_list", + "value": 203046, + "range": "± 9435", + "unit": "ns/iter" + }, + { + "name": "tuple_to_list", + "value": 78772, + "range": "± 585", + "unit": "ns/iter" + }, + { + "name": "tuple_into_py", + "value": 95, + "range": "± 0", + "unit": "ns/iter" + } + ] } ], "pytest-bench": [