From 2f2dcadd0c2552dfc4e1229b9d5b33a70bdd098f Mon Sep 17 00:00:00 2001 From: github-action-benchmark Date: Thu, 9 May 2024 16:48:51 +0000 Subject: [PATCH] add pyo3-bench (cargo) benchmark result for 2d19b7e2a7e29e2f445a8b415a764f40b4242c5c --- 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 cfb4056ebe4..7f9c0a8b6fc 100644 --- a/dev/bench/data.js +++ b/dev/bench/data.js @@ -1,5 +1,5 @@ window.BENCHMARK_DATA = { - "lastUpdate": 1715245872452, + "lastUpdate": 1715273330092, "repoUrl": "https://github.com/PyO3/pyo3", "entries": { "pyo3-bench": [ @@ -314636,6 +314636,414 @@ window.BENCHMARK_DATA = { "unit": "ns/iter" } ] + }, + { + "commit": { + "author": { + "email": "dmatos2012@users.noreply.github.com", + "name": "David Matos", + "username": "dmatos2012" + }, + "committer": { + "email": "noreply@github.com", + "name": "GitHub", + "username": "web-flow" + }, + "distinct": true, + "id": "2d19b7e2a7e29e2f445a8b415a764f40b4242c5c", + "message": "Add `num-rational` support for Python's `fractions.Fraction` type (#4148)\n\n* Add `num-rational` support for Python's `fractions.Fraction` type\n\n* Add newsfragment\n\n* Use Bound instead\n\n* Handle objs which atts are incorrect\n\n* Add extra test\n\n* Add tests for wasm32 arch\n\n* add type for wasm32 clipppy", + "timestamp": "2024-05-09T15:37:53Z", + "tree_id": "c9e652161b96926f2770c4fc3e1ae53be39bdbd8", + "url": "https://github.com/PyO3/pyo3/commit/2d19b7e2a7e29e2f445a8b415a764f40b4242c5c" + }, + "date": 1715273308380, + "tool": "cargo", + "benches": [ + { + "name": "identify_object_type", + "value": 487, + "range": "± 3", + "unit": "ns/iter" + }, + { + "name": "collect_generic_iterator", + "value": 10202840, + "range": "± 494987", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_extract_fail", + "value": 255, + "range": "± 2", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_small", + "value": 54, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_big_negative", + "value": 173, + "range": "± 1", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_big_positive", + "value": 141, + "range": "± 2", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_huge_negative", + "value": 1231, + "range": "± 12", + "unit": "ns/iter" + }, + { + "name": "extract_bigint_huge_positive", + "value": 1006, + "range": "± 8", + "unit": "ns/iter" + }, + { + "name": "call_0", + "value": 30968, + "range": "± 126", + "unit": "ns/iter" + }, + { + "name": "call_method_0", + "value": 98177, + "range": "± 718", + "unit": "ns/iter" + }, + { + "name": "ordered_dunder_methods", + "value": 43, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "ordered_richcmp", + "value": 43, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "decimal_via_extract", + "value": 382, + "range": "± 1", + "unit": "ns/iter" + }, + { + "name": "iter_dict", + "value": 1134867, + "range": "± 2284", + "unit": "ns/iter" + }, + { + "name": "dict_new", + "value": 3316356, + "range": "± 18154", + "unit": "ns/iter" + }, + { + "name": "dict_get_item", + "value": 2177261, + "range": "± 11788", + "unit": "ns/iter" + }, + { + "name": "extract_hashmap", + "value": 4959445, + "range": "± 25081", + "unit": "ns/iter" + }, + { + "name": "extract_btreemap", + "value": 7585284, + "range": "± 26735", + "unit": "ns/iter" + }, + { + "name": "mapping_from_dict", + "value": 0, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "err_new_restore_and_fetch", + "value": 161, + "range": "± 1", + "unit": "ns/iter" + }, + { + "name": "err_new_without_gil", + "value": 13, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_str_extract_success", + "value": 10, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_str_extract_fail", + "value": 23, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_str_downcast_success", + "value": 10, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_str_downcast_fail", + "value": 1, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_int_extract_success", + "value": 5, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_int_extract_fail", + "value": 249, + "range": "± 5", + "unit": "ns/iter" + }, + { + "name": "extract_int_downcast_success", + "value": 5, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_int_downcast_fail", + "value": 1, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_float_extract_success", + "value": 2, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_float_extract_fail", + "value": 237, + "range": "± 16", + "unit": "ns/iter" + }, + { + "name": "extract_float_downcast_success", + "value": 1, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "extract_float_downcast_fail", + "value": 3, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "enum_from_pyobject", + "value": 910, + "range": "± 17", + "unit": "ns/iter" + }, + { + "name": "list_via_downcast", + "value": 0, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "list_via_extract", + "value": 6, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "not_a_list_via_downcast", + "value": 1, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "not_a_list_via_extract", + "value": 30, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "not_a_list_via_extract_enum", + "value": 504, + "range": "± 2", + "unit": "ns/iter" + }, + { + "name": "clean_acquire_gil", + "value": 65, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "dirty_acquire_gil", + "value": 64, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "getattr_direct", + "value": 102, + "range": "± 3", + "unit": "ns/iter" + }, + { + "name": "getattr_intern", + "value": 28, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "iter_list", + "value": 746004, + "range": "± 9734", + "unit": "ns/iter" + }, + { + "name": "list_new", + "value": 890080, + "range": "± 144046", + "unit": "ns/iter" + }, + { + "name": "list_get_item", + "value": 605053, + "range": "± 1157", + "unit": "ns/iter" + }, + { + "name": "list_get_item_unchecked", + "value": 419080, + "range": "± 15673", + "unit": "ns/iter" + }, + { + "name": "sequence_from_list", + "value": 0, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "first_time_init", + "value": 3099, + "range": "± 344", + "unit": "ns/iter" + }, + { + "name": "drop_many_objects", + "value": 1860, + "range": "± 28", + "unit": "ns/iter" + }, + { + "name": "set_new", + "value": 2780395, + "range": "± 36076", + "unit": "ns/iter" + }, + { + "name": "iter_set", + "value": 1313876, + "range": "± 23768", + "unit": "ns/iter" + }, + { + "name": "extract_hashset", + "value": 5595699, + "range": "± 16373", + "unit": "ns/iter" + }, + { + "name": "extract_btreeset", + "value": 1973245, + "range": "± 9349", + "unit": "ns/iter" + }, + { + "name": "iter_tuple", + "value": 653117, + "range": "± 44030", + "unit": "ns/iter" + }, + { + "name": "tuple_new", + "value": 941807, + "range": "± 175479", + "unit": "ns/iter" + }, + { + "name": "tuple_get_item", + "value": 606753, + "range": "± 7048", + "unit": "ns/iter" + }, + { + "name": "tuple_get_item_unchecked", + "value": 497253, + "range": "± 28252", + "unit": "ns/iter" + }, + { + "name": "tuple_get_borrowed_item", + "value": 651725, + "range": "± 14562", + "unit": "ns/iter" + }, + { + "name": "tuple_get_borrowed_item_unchecked", + "value": 481126, + "range": "± 13820", + "unit": "ns/iter" + }, + { + "name": "sequence_from_tuple", + "value": 0, + "range": "± 0", + "unit": "ns/iter" + }, + { + "name": "tuple_new_list", + "value": 240663, + "range": "± 46332", + "unit": "ns/iter" + }, + { + "name": "tuple_to_list", + "value": 172651, + "range": "± 41073", + "unit": "ns/iter" + }, + { + "name": "tuple_into_py", + "value": 85, + "range": "± 0", + "unit": "ns/iter" + } + ] } ], "pytest-bench": [